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: Ype K. <yk...@xs...> - 2002-01-30 10:07:25
|
Edward, >Hello All, > >My Jython app creates and uses a few org.python.util.PythonInterpreter's. It >looks something like this: > > >|-----Shared namespace ------------| >Main app >Interpreter Interpreter Interpreter > >So the interpreters and the main app share a namespace. > >Can anyone answer these questions: > >o If a script executed within one interpreter alters the state of the main >application (ie, a scripted class is added to some application list), and >the interpreter is deleted, what happens. When the state change is a done in the shared namespace it will stay there when the interpreter is deleted. It is a bit tricky to share namespaces this way. An alternative is to use the namespace of a module shared between the main app and the interpreters. You can set things in a module from outside the module. You could for example import a module in the main app and set a variable in this module from the main app to a shared object. This shared object can then be also be used from the interpreters after they import the module. >Is the interpreter really deleted, or is some reference going to be dangling >about. That depends on how you implement the shared namespace. The system uses a the __dict__ member of a module for the namespace of a module (see module new), and it keeps the modules in sys.modules. >If it is deleted, is the scripted class 'ok', or will weird and unpleasant >things happen. Unpleasant things might happen when you explicitly clear a namespace too early. Only removing references is safer. >o Each interpreter redefines sys.stderr. It seems that stderr is unique >amongst all interpreters within an app. Is there another way to deal with >this? I redefined both sys.stderr via interpreter.exec() calls, and >interpreter.setOut() ... same result. I can think of hacky ways to deal with >this, but there might be an easy solution out there. With a single shared namespace and a single sys.stderr object this is not easy. You'll need some criterion to distinguish the source of the data being sent to sys.stderr. >o Anything else I should be aware of. From some stuff in the archive, I see >only one person saying that they had problems when interpreters were in diff >threads. But no solutions. You could use the thread id as the distinguishing criterion. Ie. replace sys.stderr with an object that uses the thread id to send it's output to different places. See demos/swing/Console.py on changing sys.stdout and sys.stderr. >Sorry if these are basic questions, I have been only using Jython for about >2 months, but am having such a blast that it is my main dev language now. They are not a basic questions, but they pop up often enough that a FAQ entry might be considered. You might consider using the namespace of a new.module() for each interpreter and register this module at sys.modules. You'll have to find an appropriate value for the module name (ie. __name__) to be able to find each module in sys.modules. Only one at a time can be called '__main__', unless you override the lookup in sys.modules to include eg. the thread id. With a namespace per interpreter you can also put a different sys object in each interpreter, but this seems a bit drastic too me. Some modules use their __name__ to find their module in sys.modules (notably PyUnit) and supporting this is nice. When each interpreter thread finishes you can remove all the references from sys.modules to make sure nothing is dangling. I have some bad experience with clearing such namespaces, so i'd recommend to only remove the references. The garbage collector will find non referenced objects in due time. Finally: when you use exec of execfile() you don't need a PyInterpreter. To set things in a module name space before it is started just use module.__dict__['var'] = value. Good luck, Ype -- |
From: Ype K. <yk...@xs...> - 2002-01-30 09:17:18
|
Hugh, >Hello - > >I have written a Java GUI that loads a Jython script and then attempts to run it >using an embedded Jython interpreter, i.e., the PythonInterpreter class and/or >the InteractiveInterpreter class. > >I have been unable to capture the output of the script as it runs so I can >display its progress in my Java GUI. Using the InteractiveInterpreter I sent the >Jython script to the embedded interpreter line-by-line and caputer the output by >using the setOut() method with a StringWriter output stream. This worked for the >"topmost" Jython script, but when the executing script called my functions that >were defined in another Jython script (which it found), the output stopped being >retrieved until the entire script ran to completion. And I have yet to figure >out how to capture the output when I use the PythonInterpreter.exec(String s) >method. >Any ideas? I'm stumped. Have a look at console.py in the demo/swing directory for an example of how to do this in jython. Basically you have to replace sys.stdout with another object that has some methods to receive the data. >Thanks! My pleasure. Ype -- |
From: Edward P. <epo...@te...> - 2002-01-30 02:18:26
|
Hello All, My Jython app creates and uses a few org.python.util.PythonInterpreter's. It looks something like this: |-----Shared namespace ------------| Main app Interpreter Interpreter Interpreter So the interpreters and the main app share a namespace. Can anyone answer these questions: o If a script executed within one interpreter alters the state of the main application (ie, a scripted class is added to some application list), and the interpreter is deleted, what happens. Is the interpreter really deleted, or is some reference going to be dangling about. If it is deleted, is the scripted class 'ok', or will weird and unpleasant things happen. o Each interpreter redefines sys.stderr. It seems that stderr is unique amongst all interpreters within an app. Is there another way to deal with this? I redefined both sys.stderr via interpreter.exec() calls, and interpreter.setOut() ... same result. I can think of hacky ways to deal with this, but there might be an easy solution out there. o Anything else I should be aware of. From some stuff in the archive, I see only one person saying that they had problems when interpreters were in diff threads. But no solutions. Sorry if these are basic questions, I have been only using Jython for about 2 months, but am having such a blast that it is my main dev language now. Thanks, -Ed |
From: ¼¥¿î¿µÀÚ<sho...@ya...> - 2002-01-29 22:30:07
|
<html> <head> <title>제조및판매원:한국양잠개발공사 </title> <meta name="generator" content="Namo WebEditor v5.0"> </head> <body bgcolor="white" text="black" link="blue" vlink="purple" alink="red"> <table align="center" width="632"> <TR> <TD width="626" colSpan="3"> <P align=center><a href="http://newsearch.imbc.com/vss-bin/vss_SR/MBC_News/search?template=detail.tmpl;proxy_mime_type=video/x-ms-asf;proxy_url=mms://newsvod.imbc.com/newsdesk/2002/01/mbc_020119_pm9_news1_100k.asf;autostart=true;search_mode=;result_type=clips;asset_id=67279;video_asset_id=67276;query=동+충+하+초+;highlight_string=동충하초;fetch_records=all;timein_msec=385333;timeout_msec=489333;timein=00:06:25:10;timeout=00:08:09:10" target="_blank"><B><FONT class=result_title color=red>건강식품 큰 인기, 설 선물 순위도 바꿨다</FONT><FONT color=red> </FONT></B></a></P></TD></TR> <TR> <TD width="117" height=76> <P align="center"><a href="http://newsearch.imbc.com/vss-bin/vss_SR/MBC_News/search?template=detail.tmpl;proxy_mime_type=video/x-ms-asf;proxy_url=mms://newsvod.imbc.com/newsdesk/2002/01/mbc_020119_pm9_news1_100k.asf;autostart=true;search_mode=;result_type=clips;asset_id=67279;video_asset_id=67276;query=동+충+하+초+;highlight_string=동충하초;fetch_records=all;timein_msec=385333;timeout_msec=489333;timein=00:06:25:10;timeout=00:08:09:10" target="_blank"><IMG height=72 src="http://www.t1818.com/giftshop/0000439803.jpg" width=96 border=0></a></P></TD> <TD width="400" height=76><FONT class=regular><SPAN style="FONT-SIZE: 10pt">금연 열기가 유별났던 올해는 특히 설을 앞두고 건강보조식품들이 선물 품목으로 높은 인기를 끌고 있습니다. 건강식품 열기는 마침 불어닥친 금연 열기와 맞물려 더욱 뜨거워질 전망입니다....</SPAN></FONT><SPAN style="FONT-SIZE: 10pt"> </SPAN></TD><TD width="101" height=76> <p align="center"><img src="http://www.t1818.com/giftshop/tuck.gif" width="100" height="100" border="0"></p> </TD></TR> </table> <table align="center" border="1" cellspacing="0" width="500" bordercolordark="white" bordercolorlight="black"> <tr> <td width="490"><TABLE cellSpacing=0 cellPadding=0 width=633 align=center border=0> <TBODY> <TR> <TD width=633 colSpan=4 height=20> <P align="left"><font color="#6666FF"> </font><font size="2" color="#6666FF"> 설날선물 인터넷 주문은 미리 준비 하셔야 합니다</font><font size="2" color="#CCCCFF"> </font><font size="2"> </font><SPAN style="FONT-SIZE: 11pt">제조및 판매원 : 한국양잠개발공사</SPAN><SPAN style="FONT-SIZE: 10pt"> </SPAN></P></TD></TR> <TR> <TD width=286 height=376 rowSpan=3> <P align=center><SPAN style="FONT-SIZE: 10pt"><FONT color=black><B> </B></FONT><B><FONT color=red>농촌진흥청</FONT></B><FONT color="black">에서 기술개발한 믿을 수 있는 <BR> 최고의 제품</FONT><B><FONT color=black> </FONT><FONT color=red>홍삼누에동충하초</FONT><FONT color=black> <BR></FONT></B><FONT color="black">한가지만을 자신있게 권합니다.</FONT></SPAN></P> <P align=center><a href="http://www.t1818.com/giftshop/" target="_blank"><IMG height=233 src="http://www.t1818.com/giftshop/Untitled-2.gif" width=164 border=0></a><br><a href="http://www.t1818.com/giftshop/" target="_blank"><font size="2" color="black">홍삼+누에동충하초</font></a></P> <P align=center><SPAN style="FONT-SIZE: 10pt"><FONT color=blue><B>백화점.농협판매가 : 398,000원<br></B></FONT><B><FONT color=red>설 특판가격 : 168,000원</FONT><a href="http://www.t1818.com/giftshop/" target="_blank"><FONT color=red> [ 구매하기 ] </FONT></a></B></SPAN></P> </TD> <TD width=94> <P align=left><IMG height=82 src="http://www.t1818.com/giftshop/images/Untitled-1_01.gif" width=97></P></TD> <TD width=114><IMG height=82 src="http://www.t1818.com/giftshop/images/Untitled-1_02.gif" width=114></TD> <TD width=139><IMG height=82 src="http://www.t1818.com/giftshop/images/Untitled-1_03.gif" width=139></TD></TR> <TR> <TD width=94><IMG height=166 src="http://www.t1818.com/giftshop/images/Untitled-1_04.gif" width=97></TD> <TD width=114><IMG height=166 src="http://www.t1818.com/giftshop/images/Untitled-1_05.gif" width=114></TD> <TD width=139><IMG height=166 src="http://www.t1818.com/giftshop/images/Untitled-1_06.gif" width=139></TD></TR> <TR> <TD width=94 height=128><IMG height=137 src="http://www.t1818.com/giftshop/images/Untitled-1_07.gif" width=97></TD> <TD width=114 height=128><IMG height=137 src="http://www.t1818.com/giftshop/images/Untitled-1_08.gif" width=114></TD> <TD width=139 height=128><IMG height=137 src="http://www.t1818.com/giftshop/images/Untitled-1_09.gif" width=139></TD></TR></TBODY></TABLE> </td> </tr> </table> <P align="center"><SPAN style="FONT-SIZE: 10pt">미국 FDA 승인, 대한민국 동충하초 특허 제 0187897호</SPAN></P><p align="center"> <font size="2" color="#6666FF">본 메일은 정보통신망 법률 제 50조에 의거한 [광고] 메일입니다.<BR>귀하의 행복한 날과 하시는일 모두 번창하시길 바라며...<BR>혹 프로그램 오류로 중복메일을 받으셨다면 정중히 사과드립니다<br></font><font size="2"><a href="mailto:sho...@ya...?subject=절대수신거부">수신거부</a></font></p> </body> </html> |
From: Mats W. <ma...@la...> - 2002-01-29 21:50:29
|
At 01:31 PM 1/26/2002 -0800, you wrote: >dman wrote: >> experience. Jython _is_ python -- it is an implementation of the >> python language and much of the standard library. The docs on >> jython's web site are to alert people to the differences between >> cpython and jython and to introduce the special features (javabean >> support). > >O'Reilly is coming out with "Jython Essentials" in March, >I'm hoping that will be good. Don't discount Robert Bill's book. I got an advance copy (electronic) and just had a chance to glance at it before life got busy, and it didn't seem anything special. But now that I'm going through the printed book in detail, I'm very impressed. >IMHO, based on what I've seen on the jython site, experience >with Java is assumed, and Python is taught. I'd REALLY like >to see something from the opposite perspective, if any of >you folks have the ability/inclination to write it. As a >Python programmer, the attraction of Jython is being able >to run Python code in new places, such as in-browser applets, >and rapidly-installable applications on client computers. Well, I was in talks to do a Jython book a number of months back. The project ended up having its wings fall off (permanently, I won't be competing with the two current books), but we did examine in considerable detail what the markets might be. My prospective publisher was not convinced that marketing a book as "Java for Python programmers" would fly at all, while "Python for Java programmers" might have some chance. Since nobody's offering to pay for it, I'm not going to be writing either title! Some folks have tried to kick off a collaborative effort to develop some tutorials. I thought I was going to participate, but as I said, things got busy. If you're interested in pitching Jython as a kinder, gentler, approach to using Java, you could try - I think a discussion wiki is already set up. Maybe the time is right now, where it apparently wasn't last go-round. Good luck, Mats |
From: ¹ÚÂùÀÏ<ch...@ko...> - 2002-01-29 18:21:48
|
<HTML> <HEAD> <META content="text/html; charset=ks_c_5601-1987" http-equiv=Content-Type> <STYLE> p, font, span { line-height:120%; margin-top:0; margin-bottom:0; }</STYLE> </HEAD><BODY> <P><FONT size=2>※ 죄송합니다. 본 메일은 정보통신망 이용촉진 및 정보보호 등에 관한 <BR>법률 제 50조에 의거한 [광고] 메일입니다.본 메일은 인터넷 상에 공개된 <BR>메일 주소를 보고 발송하였습니다.귀하의 이메일 정보 이외에 저희가 <BR>보유하고 있는 정보는 일체 없습니다.그리고 이 메일은 단 한번 발송되는 <BR>멜입니다.간혹 서버오류로 같은 멜이 2회이상 갈 수도 있습니다 <BR>수신을 원치 않으시는 분은 번거로우시더라도 수신거부 설정하시거나 <BR>(</FONT><A href="mailto:air...@we..."><FONT size=2>air...@we...</FONT></A><FONT size=2>)으로 멜주시면 다시는 보내지 않겠습니다. <BR></FONT></P><FONT size=2> <HR> </FONT> <embed src="http://onelineclub.com/head/imgs/okbn06.swf" play="true" loop="true" quality="high" width="500" height="100")(/embed> <b><font color=blue><b>OKwava</b></font>= 무료사업 입니다.</b><br> 무료사업 임으로 절대로 피해를 보는 일이 없습니다.<br> 기존에 몇백만원씩 투자해가며 열심이 활동을 해서 님이 얻은 수익은 얼마나 되십니까. <br> 그 투자금을 여기서 찾아 가십시요..<br> 기존에 당했던 모든일을 여기서 만회하십시요.<br> 왜~ 무료사업이니까요...^^ <br> 무료 사업이니 다운 모으기는 쉽겠네요...^^<br><br> <b><font color=blue><b>OKwava</b></font>= 강력한 보상플렌이 있습니다.</b><br> 3*5의 메트릭스에 직추천에 의한 스필오버... <br> 완벽한 결합으로 여러분께 최대의 수익을 드립니다.<br><br> <b><font color=blue><b>OKwava</b></font>= 후레시가 없습니다.</b><br> 마케팅의 함정이 없습니다.<br> 즉 님이 끝까지 노력만 하신다면 회사가 내새운 수익을 다 받으실수 있습니다.<br><br> <b><font color=blue><b>OKwava</b></font>= 최고의 부업감으로 손색이 없습니다.</b><br> 주업만으로는 생활을 이끌어 나가기가 힘이드는 시대에서<br> 하루에 한두시간 홍보로 보람찬 부수입을 얻으실수 있습니다.<br> 가정에는 생활비를~~ 학생들에게는 용돈을~~<br><br> <b><font color=blue><b>OKwava</b></font>= 이 모든것이 현실로 다가온 회사입니다.</b><br> 믿고 하신다면 그 믿음의 소망을 현실로 안겨줄 회사입니다.<br><br> <a href="http://www.okwava.com/business_3.htm" target="_blank"><img src="http://my.netian.com/~mirmin/con1.gif" width="119" height="24" border="0"></a> <a href="http://my.netian.com/%7Ekbbss77/bp.htm" target="_blank"><img src="http://my.netian.com/~mirmin/con2.gif" width="119" height="22" border="0"></a><br> <ul> <li>허위 광고에 속지 마십시요.<br></li> <li>OKwava 에 가셔서 이 모든 사실을 확인 하십시요.<br></li> 추천인 아뒤<font color=red><b>aircraft77</b></font> 추천인란에 <font color=red><b>aircraft77</b></font>적어주세요^^<br></p> 문의메일 : air...@we...<br> 문의전화 : 016-274-5819입니다.<br> <br><a href="http://www.okwava.com/?recom_id=aircraft77" target="_blank"><font size="2"><b>가입하시려면 이곳을 누르세요</b></font></a><br> |
From: Hugh R. <rod...@ag...> - 2002-01-29 17:06:30
|
Hello - I have written a Java GUI that loads a Jython script and then attempts to run it using an embedded Jython interpreter, i.e., the PythonInterpreter class and/or the InteractiveInterpreter class. I have been unable to capture the output of the script as it runs so I can display its progress in my Java GUI. Using the InteractiveInterpreter I sent the Jython script to the embedded interpreter line-by-line and caputer the output by using the setOut() method with a StringWriter output stream. This worked for the "topmost" Jython script, but when the executing script called my functions that were defined in another Jython script (which it found), the output stopped being retrieved until the entire script ran to completion. And I have yet to figure out how to capture the output when I use the PythonInterpreter.exec(String s) method. Any ideas? I'm stumped. Thanks! Hugh |
From: <da...@cr...> - 2002-01-29 09:45:49
|
Hi, I've never had problems with awt components - try this barebones script, see if it works for you. Note the windowCloising event handler requires a WindowEvent as an argument, but there's no obligation to use it (useful in a more complicated setup, you can query the event which window it came from, and call dispose() on that). Here's the code, hope it helps, Dave ======================================== import java def bye(windowevent): print windowevent #just out of interest f.dispose() java.lang.System.exit(0) f=java.awt.Frame("testing",bounds=(64,64,320,320),visible=1,windowClosing=bye) >I don't get it. If I instantiate a Frame, it never goes away and holds up >the interpreter from exiting. |
From: <te...@in...> - 2002-01-29 08:55:19
|
<HTML> <HEAD> <TITLE>event</TITLE> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Deuc-kr">= </HEAD> <BODY BGCOLOR=3D#ffffff leftmargin=3D"0" topmargin=3D"0" marginwidth=3D"0"= marginheight=3D"0"> <table width=3D"500" border=3D"0" cellpadding=3D"0" cellspacing=3D"0" align=3D"center"> <tr>=20 <td valign=3D"top"> =09<div align=3D"center"> <p> </p> <p><font face=3D"=B1=BC=B8=B2" size=3D"4"><b>=BC=BA=C0=CE =C6=F7=C5= =BB=C0=C7 =B8=F0=B5=E7 =B0=CD!!! <font color=3D"#ff0000">www=2Eclickij=2Ecom</font></b></font>=20 </p> <p><font color=3D"#0000ff"><b>=C6=B4 =BB=E7=C0=CC=BF=A1=BC=AD =B8=F4= =B7=A1 =BA=B8=B4=C2 =C0=E7=B9=CC,=BF=A9=B4=EB=BB=FD=C0=C7 =C3=B9 =B0=E6=C7=E8, <br> =BA=CE=C7=CF=C1=F7=BF=F8=B0=FA=C0=C7 =C7=D6 =BC=BD=BD=BA, =B7=B9= =C0=CC=BD=CC=B0=C9=C0=C7 =C0=FA=B3=E1 =BD=C3=B0=A3 ,<br> =B3=AA=B0=A1=BF=E4=C0=C7 =B3=B2=C0=DA=B5=E9, =C1=D9=B6=A7 =B8=D4= =C0=DA=C0=C7 =B0=A2=C1=BE =B8=F4=C4=AB=2E<br> =BF=A4=B7=B9=BA=A3=C0=CC=C5=CD=BE=C8=BF=A1=BC=AD=C0=C7 =C7=F6=C0= =E5,=BA=BC=B8=B5=C0=E5=BF=A1=BC=AD =B8=F4=C4=AB,<br> =BF=A9=BA=F1=BC=AD=BF=CD=C0=C7 =C8=AD=C0=E5=BD=C7=BE=C8,=BE=C6=B3= =BB=C0=C7 =C4=A3=B1=B8, =BF=A9=B4=EB=BB=FD=B5=E9=C0=C7 =B1=E2=BC=F7=BB=E7<= /b></font> <b><font color=3D"#0000ff">=B5=EE </font></b></p> <p>=BE=D6=B7=CE=B9=E8=BF=EC=B5=E9=C0=C7 =BB=FD=B9=E6=BC=DB/=C3=D6=BD=C5=BF=B5=C8=AD/=B8=B8=C8=AD/=BE=D6=B4=CF=B8=DE= =C0=CC=BC=C7/=B5=E5=B6=F3=B8=B6/=B9=F6=B6=F3=C0=CC=C6=BC=BC=EE/=BD=C3=C6=AE= =C4=DE/=B0=A2=C1=BE =B0=D4=C0=D3 =B5=EE =BB=F5=B7=D3=B0=ED, =BD=C5=BC=B1=C7=CF=B4=D9=2E=2E=2E</p> <p>=BC=BA=C0=CE=C0=CC=B6=F3=B8=E9 =B4=A9=B1=B8=B3=AA =BA=B8=BD=C7=BC=F6 = =C0=D6=BD=C0=B4=CF=B4=D9=2E</p> <form method=3D"post" action=3D"http://www=2Eclickij=2Ecom/member/real=2E= asp"> =09 </div> <tr>=20 <td> <img src=3D"http://www=2Eclickij=2Ecom/mail/event_01=2Egif"= width=3D500 height=3D72></td> </tr> <tr>=20 <td> <img src=3D"http://www=2Eclickij=2Ecom/mail/event_06=2Egif"= width=3D500 height=3D159></td> </tr> <tr>=20 <td> <input type=3Dimage src=3D"http://www=2Eclickij=2Ecom/mail/event_03=2Egif" width=3D500 height=3D= 143 usemap=3D"#Map2Map" border=3D"0"></td> </tr> <tr>=20 <td> <input type=3Dimage src=3D"http://www=2Eclickij=2Ecom/mail/event_07=2Egif" width=3D500 height=3D= 226 usemap=3D"#MapMap" border=3D"0"></td> </tr> <map name=3D"MapMap">=20 <area shape=3D"RECT" coords=3D"366,72,491,121" href=3D"http://www=2Eclickij=2Ecom/member/real=2Easp" target=3D"_blank"> </map> <map name=3D"Map2Map">=20 <area shape=3D"RECT" coords=3D"362,10,490,57" href=3D"http://www=2Eclickij=2Ecom/member/real=2Easp" target=3D"_blank"> </map> <DIV></DIV> </td> </tr> <input type=3D"hidden" name=3D"link_url" value=3D"http://www=2Eclickij=2Ecom/intro=2Easp"></FORM> <tr><td><div align=3D"center"><p> </p> <font face=3D"=B1=BC=B8=B2">=C0=CC =B8=DE=C0=CF=C0=BA =C1=A4=BA=B8=C5=EB= =BD=C5=C0=B1=B8=AE=C0=A7=BF=F8=C8=B8 =B9=DF=C7=A5(2002=2E1=2E17)=BB=E7=C7=D7= =BF=A1 =C0=C7=B0=C5, =C1=A6=B8=F1=BF=A1 [=BC=BA=C0=CE=B1=A4=B0=ED]=B6=F3 =C7=A5=BD= =C3=B5=C8 =BC=BA=C0=CE=B1=A4=B0=ED=B8=DE=C0=CF=C0=D4=B4=CF=B4=D9=2E</font>= =20 <p><font face=3D"=B1=BC=B8=B2"> =BA=BB=B8=DE=C0=CF=C0=BA <font color=3D"= #990000"><b><font color=3D"#ff0000">=B9=DF=BD=C5=C0=FC=BF=EB</font></b></font>=C0=D4=B4=CF=B4= =D9=2E</font> <p><font face=3D"=B1=BC=B8=B2"> =BC=F6=BD=C5=B0=C5=BA=CE=B8=DE=C0=CF= =C0=BA =B4=D9=BD=C3 =BA=B8=B3=BB=B4=C2 =C0=CF=C0=CC =BE=F8=C0=B8=B4=CF<br>= =B8=C7=BE=C6=B7=A1 =BC=F6=BD=C5=B0=C5=BA=CE=B8=A6 =C0=CC=BF=EB=C7= =D8 =C1=D6=BD=C3=B8=E9 =B0=A8=BB=E7=C7=CF=B0=DA=BD=C0=B4=CF=B4=D9=2E<br> =2E<br> =BC=F6=BD=C5 =B0=C5=BA=CE=B8=A6 =BF=F8=C7=CF=BD=C7 =B0=E6=BF=EC = =BE=C6=B7=A1=C0=C7 =BC=F6=BD=C5=B0=C5=BA=CE=B8=A6 =B2=C0 =C5=AC=B8=AF=C7=D8= =C1=D6=BC=BC=BF=E4~<br> <br> <br> <A href=3D"http://www=2Eclickij=2Ecom/mail/receiver5=2Ehtml" target=3D_blank><font color=3D"red" size=3D"2"><b><font size=3D"3">=BC=F6=BD=C5=B0=C5=BA=CE</font></b></font></A>=20 </font></p></div>=20 =20 </td> </tr> </table>=20 </BODY> </HTML> |
From: Samuele P. <ped...@bl...> - 2002-01-28 21:15:27
|
Hi. I'm not sure about what you are trying to achieve but consider: <frag.py> A().describe() </frag.py> Then we assume that frag.py is jythonc-ed. <run.py> from java.lang import Class # jythonc compiled frag should be classpath reachable fragpy=Class.forName("frag$_PyInner") class A: def describe(self): print "I'm an A instance coming from no-where" frag_code = fragpy().getMain() exec frag_code in { 'A': A } </run.py> I don't know if your applet is a java or jython applet. But if you want to compile things - as it seems - separately that point does not change things that much, in the sense that run.py equivalent does not know that much about frag.py anyway. and so all the easy answers don't work <wink>. If your applet is a java applet then you should consider doing the same from java with Py.runCode(code,locals,globals), or PythonInterpreter.exec, ... Btw, this is *highly* *undocumented* and *unsupported* (that means it works for jython 2.0 and jython 2.1, dunno for jython 2.2). regards, Samuele Pedroni. ----- Original Message ----- From: Sells, Fred <fr...@ad...> To: <jyt...@so...> Sent: Monday, January 28, 2002 7:28 PM Subject: [Jython-users] jythonc, tricky class, cannot instantiate > Attached is an example of a jython file that I use to define a form and the > corresponding source that jythonc generates. > > I am using this in an applet and can "exec()" the file after loading up its > namespace as needed. > > I would like to generate the class files and jar them to improve speed and > avoid downloading the parser and opening the security restrictions for > applets. > > I know that my file does not really look like a python class file and > therefore I may be generating some funky java. The reason the python looks > the way it does is to hid the fact from the form designer that they are > programming. > > this error is generated by any reference to AA() or to AA.main(...) > > I use this to build the jar: jythonc --jar mds20form.jar --all *.py > > Exception occurred during event dispatching: java.lang.NoSuchMethodError > > at mds20form.AA.main(AA.java:140) > at formspec.PageRepository.getSection(PageRepository.java:83) > at mdsapplet.ControlMDSSections.selectPage(ControlMDSSections.java:91) > at mdsapplet.ControlMDSSections.processCommand(ControlMDSSections.java:49) > > at gui.Dispatcher.run(ezActionManager.java:28) > at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:317) > at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103) > > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) > > at java.awt.EventDispatchThread.run(EventDispatchThread.java:84) > > |
From: Sells, F. <fr...@ad...> - 2002-01-28 18:28:17
|
Attached is an example of a jython file that I use to define a form and the corresponding source that jythonc generates. I am using this in an applet and can "exec()" the file after loading up its namespace as needed. I would like to generate the class files and jar them to improve speed and avoid downloading the parser and opening the security restrictions for applets. I know that my file does not really look like a python class file and therefore I may be generating some funky java. The reason the python looks the way it does is to hid the fact from the form designer that they are programming. this error is generated by any reference to AA() or to AA.main(...) I use this to build the jar: jythonc --jar mds20form.jar --all *.py Exception occurred during event dispatching: java.lang.NoSuchMethodError at mds20form.AA.main(AA.java:140) at formspec.PageRepository.getSection(PageRepository.java:83) at mdsapplet.ControlMDSSections.selectPage(ControlMDSSections.java:91) at mdsapplet.ControlMDSSections.processCommand(ControlMDSSections.java:49) at gui.Dispatcher.run(ezActionManager.java:28) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154) at java.awt.EventQueue.dispatchEvent(EventQueue.java:317) at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:84) |
From: Joshua R. <jo...@is...> - 2002-01-28 15:51:45
|
As usual stupid user error wins again. The jython.bat file I was using was starting up the wrong vm. Thanks for you help. Joshua Ted McFadden wrote: > Hi, > > In the past, I have used jython with OOC/IONA's ORBacus for Java, > which worked great so I would expect you should be able to get jacorb > running as well. > > I vaguely recall setting the org.omg.CORBA.ORBClass and > org.omg.CORBA.ORBSingletonClass values to the ooc classes on the > command line and not using orb.properties. > > The search order for the orb class values is (as from the jdk docs): > 1. check in Applet parameter or application string array, if any > 2. check in properties parameter, if any > 3. check in the System properties > 4. check in the orb.properties file located in the user.home dir (if any) > 5. check in the orb.properties file located in the java.home/lib dir (if any) > 6. fall back on a hardcoded default behavior (use the Java IDL impl) > > Any chance you have a stray or mislocated orb.properties file? > > Cheers, > > Ted > > On Wed, Jan 23, 2002 at 08:30:27PM -0600, Joshua Reynolds wrote: > >>Has anyone tried using a different CORBA ORB with jython. I am tring to >>use jython to debug some of my java code (which uses jacorb) and it >>doesn't seem to be using the orb.properties file. The java interpreter >>works fine when run in isolation. >> >>Any suggestions. >>-- >>Joshua Reynolds | IT >> >>Isogen International >>Office: 512-380-0347 >>Cell: 512-743-3865 >>1016 La Posada Suite 240 >>Austin, TX 78752 >> >> >>_______________________________________________ >>Jython-users mailing list >>Jyt...@li... >>https://lists.sourceforge.net/lists/listinfo/jython-users >> > -- Joshua Reynolds | Consultant Isogen International Office: 512-380-0347 Cell: 512-743-3865 1016 La Posada Suite 240 Austin, TX 78752 |
From: dman <ds...@ri...> - 2002-01-28 14:14:55
|
On Mon, Jan 28, 2002 at 12:41:16AM -0500, J Scinta II wrote: | I don't get it. If I instantiate a Frame, it never goes away and holds up | the interpreter from exiting. In the simplest case: | | import java | java.awt.Frame(visible=1) | | The interpreter will not exit. I have tried several things: | | import java | def close(x): x.source.dispose() | f=java.awt.Frame(visible=1, windowClosing=close) | | I close the window, set f=None, exit the interpreter.. it still hangs. How do you "exit the interpreter"? If you don't call "sys.exit()" or "java.lang.System.exit()" then the AWT_EventQueue thread is still running (and it isn't a daemon thread) so the app won't quit. Normally you will add an event handler to the closing of the window that calls exit(). (Normally main() returns long before the program is done running) -D -- In my Father's house are many rooms; if it were not so, I would have told you. I am going there to prepare a place for you. And if I go and prepare a place for you, I will come and take you to be with me that you also may be where I am. John 14:2-3 |
From: <Ron...@Ne...> - 2002-01-28 13:29:42
|
There is a new book out, "Jython for Java Programmers," by Robert Bill, published by New Riders. dman <ds...@ri...>@lists.sourceforge.net on 01/26/2002 10:51:33 AM Sent by: jyt...@li... To: jyt...@li... cc: Subject: Re: [Jython-users] Where is Good guide to Jython?? On Sat, Jan 26, 2002 at 05:10:00PM +0530, Jiger Patel wrote: | Hi all, | I am totally new to jython/python. I just wanted to know if there | was anything available on the net for begineers in jython. | Any links to tutorials, sample codes, articles, intro, intermediate topics | like Activestate maintains for python. Something more than the docs that | come with jython. Also is anyone writing Full Docs just the one that comes | with Python. Basically start with the python docs. See Guido's "Tutorial" on python.org or Alan Gauld's tutorial (I don't have URL handy, but google will turn it up) depending on your level of programming experience. Jython _is_ python -- it is an implementation of the python language and much of the standard library. The docs on jython's web site are to alert people to the differences between cpython and jython and to introduce the special features (javabean support). If you're new to programming and want answers to basic questions the python tutor list is a good place to look. (tu...@py...) HTH, -D -- The light of the righteous shines brightly, but the lamp of the wicked is snuffed out. Proverbs 13:9 _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users |
From: Jeff S. <jef...@ma...> - 2002-01-28 06:18:02
|
Yes, I also have this problem under similar circumstances with awt and swing. I'm running Jython 2.1 using JDK1.3 on Red Hat Linux 6.2. Jeff Stearns On Sunday, January 27, 2002, at 09:41 PM, J Scinta II wrote: > I don't get it. If I instantiate a Frame, it never goes away and holds > up the interpreter from exiting. In the simplest case: > > import java > java.awt.Frame(visible=1) > > The interpreter will not exit. I have tried several things: > > import java > def close(x): x.source.dispose() > f=java.awt.Frame(visible=1, windowClosing=close) > > I close the window, set f=None, exit the interpreter.. it still hangs. > > import javax > f=javax.swing.JFrame(visible=1) > > ...still hangs on exit. Incidentally, this also happens when running > the script from a file. > > Does anyone else get this problem? > > Jython 2.1 on JDK1.3 (also on jview 5.00.3310) on Win2000. |
From: J S. I. <xy...@ke...> - 2002-01-28 05:44:54
|
I don't get it. If I instantiate a Frame, it never goes away and holds up the interpreter from exiting. In the simplest case: import java java.awt.Frame(visible=1) The interpreter will not exit. I have tried several things: import java def close(x): x.source.dispose() f=java.awt.Frame(visible=1, windowClosing=close) I close the window, set f=None, exit the interpreter.. it still hangs. import javax f=javax.swing.JFrame(visible=1) ...still hangs on exit. Incidentally, this also happens when running the script from a file. Does anyone else get this problem? Jython 2.1 on JDK1.3 (also on jview 5.00.3310) on Win2000. |
From: Samuele P. <ped...@bl...> - 2002-01-27 12:52:53
|
Hi. You should use a org.python.util.PythonObjectInputStream to read that back. Anyway it is important that your class is defined at the top-level in a module that is not the main module (that one you pass on the jython command line), this are basicly the same rules for pickle, which OTOH does not support even under jython java classes and not completely python subclasses of java classes. regards, Samuele Pedroni. ----- Original Message ----- From: Ranjan Bagchi <ran...@fr...> To: <jyt...@li...> Sent: Sunday, January 27, 2002 5:32 AM Subject: [Jython-users] Serializable classes > Hi -- > > Is there any magic I need to do to make Jython objects deserialize correctly? I was experimenting with having a Jython class implement Serializable -- to be honest, I expected to see it blow up when I sent it to an ObjectOutputStream -- but that worked. > > However, when I deserialize it, I get a ClassNotFound exception. > > Here's the code: > > import java > class MyClass(java.io.Serializable): > def __init__(this, x): > this.x = x > > obj = MyClass(33) > baos = java.io.ByteArrayOutputStream() > oos = java.io.ObjectOuputStream(baos) > oos.writeObject(obj) > ## good so far > ois = java.io.ObjectInputStream(java.io.ByteArrayInputStream(baos.toByteArray())) > ois.readObject() > Traceback (innermost last): > File "<console>", line 1, in ? > java.lang.ClassNotFoundException: org.python.proxies.__main__$MyClass$0 > at java.net.URLClassLoader$1.run(URLClassLoader.java:201) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:189) > at java.lang.ClassLoader.loadClass(ClassLoader.java:308) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) > at java.lang.ClassLoader.loadClass(ClassLoader.java:264) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:324) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:212) > at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:546) > at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1491) > at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1413) > at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1604) > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1252) > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:323) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:28) > at java.lang.reflect.Method.invoke(Method.java:313) > at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java > ) > at org.python.core.PyMethod.__call__(PyMethod.java) > at org.python.core.PyObject.__call__(PyObject.java) > at org.python.core.PyInstance.invoke(PyInstance.java) > at org.python.pycode._pyx11.f$0(<console>:1) > at org.python.pycode._pyx11.call_function(<console>) > at org.python.core.PyTableCode.call(PyTableCode.java) > at org.python.core.PyCode.call(PyCode.java) > at org.python.core.Py.runCode(Py.java) > at org.python.core.Py.exec(Py.java) > at org.python.util.PythonInterpreter.exec(PythonInterpreter.java) > at org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java) > at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java) > at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java) > at org.python.util.InteractiveConsole.push(InteractiveConsole.java) > at org.python.util.InteractiveConsole.interact(InteractiveConsole.java) > at org.python.util.jython.main(jython.java) > > java.lang.ClassNotFoundException: java.lang.ClassNotFoundException: org.python.proxies.__main__$MyClass$0 > > > Any hints -- my suspicion is that it's something deep in the java security mechanism... > > Ranjan > > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: Ranjan B. <ran...@fr...> - 2002-01-27 04:32:14
|
Hi -- Is there any magic I need to do to make Jython objects deserialize correctly? I was experimenting with having a Jython class implement Serializable -- to be honest, I expected to see it blow up when I sent it to an ObjectOutputStream -- but that worked. However, when I deserialize it, I get a ClassNotFound exception. Here's the code: import java class MyClass(java.io.Serializable): def __init__(this, x): this.x = x obj = MyClass(33) baos = java.io.ByteArrayOutputStream() oos = java.io.ObjectOuputStream(baos) oos.writeObject(obj) ## good so far ois = java.io.ObjectInputStream(java.io.ByteArrayInputStream(baos.toByteArray())) ois.readObject() Traceback (innermost last): File "<console>", line 1, in ? java.lang.ClassNotFoundException: org.python.proxies.__main__$MyClass$0 at java.net.URLClassLoader$1.run(URLClassLoader.java:201) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:189) at java.lang.ClassLoader.loadClass(ClassLoader.java:308) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:264) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:324) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:212) at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:546) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1491) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1413) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1604) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1252) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:323) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) at java.lang.reflect.Method.invoke(Method.java:313) at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java ) at org.python.core.PyMethod.__call__(PyMethod.java) at org.python.core.PyObject.__call__(PyObject.java) at org.python.core.PyInstance.invoke(PyInstance.java) at org.python.pycode._pyx11.f$0(<console>:1) at org.python.pycode._pyx11.call_function(<console>) at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyCode.call(PyCode.java) at org.python.core.Py.runCode(Py.java) at org.python.core.Py.exec(Py.java) at org.python.util.PythonInterpreter.exec(PythonInterpreter.java) at org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java) at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java) at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java) at org.python.util.InteractiveConsole.push(InteractiveConsole.java) at org.python.util.InteractiveConsole.interact(InteractiveConsole.java) at org.python.util.jython.main(jython.java) java.lang.ClassNotFoundException: java.lang.ClassNotFoundException: org.python.proxies.__main__$MyClass$0 Any hints -- my suspicion is that it's something deep in the java security mechanism... Ranjan |
From: ooi<si...@dr...> - 2002-01-27 03:38:29
|
<HTML> <HEAD> <TITLE></TITLE> </HEAD> <BODY> <DIV> <SPAN style="mso-bidi-font-size: 10.0pt">º» ¸ÞÀÏÀº Á¤º¸Åë½ÅºÎ ±Ç°í »çÇ׿¡ ÀǰŠÁ¦¸ñ¿¡ <B><SPAN lang=EN-US>[±¤°í]</SPAN></B><SPAN style="COLOR: black">¶ó Ç¥½ÃµÈ ±¤°í ¸ÞÀÏÀÔ´Ï´Ù<SPAN lang=EN-US>.</SPAN></SPAN><SPAN lang=EN-US style="COLOR: #666666"><BR></SPAN><SPAN style="COLOR: black">´õ ÀÌ»ó ¸ÞÀÏÀ» ¼ö½ÅÇÏ°í ½ÍÁö ¾ÊÀ¸½Ã¸é </SPAN></SPAN><SPAN lang=EN-US><A href="mailto:te...@te...?subject=%5B%5BEMAIL%5D%5D%20ÀÇ%20»ç¿ëÀڷνá%20#¼ö½ÅÀ»°ÅºÎÇÕ´Ï´Ù#&body=jyt...@li... À» ±ÍÇÏÀÇ ¸®½ºÆ®¿¡¼ »èÁ¦¿ä¸Á!"><SPAN style="COLOR: black; mso-bidi-font-size: 10.0pt">[</SPAN><SPAN style="mso-bidi-font-size: 10.0pt">¼ö½Å °ÅºÎ]</SPAN></A></SPAN><SPAN style="mso-bidi-font-size: 10.0pt">¸¦ Ŭ¸¯ÇØ ÁֽʽÿÀ<SPAN lang=EN-US>.</SPAN></SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; mso-hansi-font-family: ¹ÙÅÁ; mso-font-kerning: 0pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN> <P class=MsoNormal><SPAN lang=EN-US style="COLOR: black; FONT-FAMILY: µ¸¿òü"><±¤°í><o:p></o:p></SPAN></P> <P class=MsoNormal><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü">¸ðµÎ°¡ ÇÊ¿äÇÑ µ· µ· µ· µ· µ·<SPAN lang=EN-US>!!! ³ªµµ ÀÌÁ¦ºÎÅÍ ±× µ·À» Á» ¹ú¾î¡¦..<o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü">¸ÕÀú ¹«·ÊÇÑ ±ÛÀ» ¿Ã¸®°Ô µÈÁ¡ »ç°ú µå¸®°í¿ä<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü">À̱ÛÀ» ±×´ë·Î º¹»çÇÏ¿© Çѹø µ¹·Á º¸¼¼¿ä<SPAN lang=EN-US>. ±×¸®°í ÅõÀÚµµ ¾ó¸¶°£ ÇÊ¿ä ÇϰÚÁö¿ä.<o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü">À̱ÛÀº ÀÎÅÍ³Ý Ç×ÇØ¸¦ ÇÏ´Ù°¡ ¿ì¿¬È÷ ¹ß°ßÇÏ°Ô µÇ¾î ÆÛ¿Ô½À´Ï´Ù<SPAN lang=EN-US>.<o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü">Àúµµ ±×´ë·Î Çϰí ÀÖÀ¸¸ç ÀÏÁÖÀÏ¿¡ Çѹø Á¤µµ ÀºÇà È®ÀÎÀ» ÇÕ´Ï´Ù<SPAN lang=EN-US>.<o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü">Ȥ½Ã³ª ÅõÀÚ ÇÑ °ÍÀÌ ÀÒ¾î¹ö¸° °ÍÀ̳ª ¾Æ´ÑÁö Çϰí<SPAN lang=EN-US>¡¦.2ÁÖ¸¸¿¡ º»ÀüÀº °ÇÁ³½À´Ï´Ù. <o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü">¹°·Ð ³»°¡ °ÔÀ»·¯¼ ¸ÞÀÏÀ» º¸³»Áö ¸øÇѰ͵µ ÀÖ°í ¹Ùºü¼ º°·Î ½Å°æÀ» ¸ø¾´ Å¿µµ ÀÖ°ÚÁö¿ä<SPAN lang=EN-US>.<o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü">¿ì¼±Àº ¼ÕÇØ¸¦ ¾È º¸¾Ò´Ù´Â °Í¿¡ ½Å±âÇϱ⵵ Çϰí ÇØ¼ Áö±ÝºÎÅÍ ¿½ÉÈ÷ º¸³» º¼·Á°í ÇÕ´Ï´Ù<SPAN lang=EN-US>. <o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü">ÀÌÁ¦ ¼ÕÇØ º¼°Ç ¾øÀ¸´Ï±î¿ä<SPAN lang=EN-US>. </SPAN></SPAN><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü; mso-bidi-font-size: 10.0pt">³ë´ÙÁö´Â ÀÎÅͳݿ¡<SPAN lang=EN-US>¡¦ ÀÌ ±ÛÀº ¿À·¡ ÀüºÎÅÍ ¶°´Ù´Ï´Â ±ÛÀÔ´Ï´Ù.<o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü; mso-bidi-font-size: 10.0pt">ÀÌ ¼ºñ½º´Â ¹Ì ¿ìÆí¿¬¹æ º¹±Ç¹ý<SPAN lang=EN-US> 18Á¶ 10302Á¶ 1342Ç׿¡ µû¶ó 100% ÇÕ¹ýÀûÀÎ »ç¾÷ÀÔ´Ï´Ù.<BR>ÀÌ ÇÁ·Î±×·¥ÀÌ ¼¼°èÀûÀ¸·Î ±Þ¼ÓÈ÷ È®»ê ÁßÀ̸ç ÇÕ¹ý ÀûÀÎ ±ÝÀ¶ Á¶Á÷À̶ó´Â »ç½ÇÀÔ´Ï´Ù. <o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü; mso-bidi-font-size: 10.0pt">±×¸®°í ÀÌ ±ÛÀ» ÀÐÀ¸½Ã´Â ºÐµé²² ÀÌ ÇÁ·Î±×·¥Àº ¹ýÀûÀ¸·Î ¹®Á¦°¡ ¾ø´Â °ÍÀ» ¾Ë·Áµå¸³´Ï´Ù<SPAN lang=EN-US>.<o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü; mso-bidi-font-size: 10.0pt">¹æ¹ý ¼³¸í <SPAN lang=EN-US>(¹Ýµå½Ã ¼ø¼´ë·Î Á¤È®È÷ Çϼ¼¿ä.) ¸ÕÀú ¾Æ·¡¿¡ ÀÖ´Â 4ÀÎÀÇ ¸í´ÜÀ» º¸°í °Å±â ÀûÈù <o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü; mso-bidi-font-size: 10.0pt">ÀºÇà°èÁ·Î<SPAN lang=EN-US> 13,000¿ø¾¿ °¢°¢ 4¸í¿¡°Ô µ·À» ÀÔ±ÝÇϼ¼¿ä. ¿Ü±¹°èÁ´ U$10 ±×·¸°Ô ÇÏ¸é µ¿½Ã¿¡ <o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü; mso-bidi-font-size: 10.0pt">¼ö½Å°ú ¿©½ÅÀÌ ÀÌ·ç¾î Áö´Ï±î¿ä<SPAN lang=EN-US>. ±×·¸°Ô ÇØ¾ß¸¸ ¿ì¸®´Â ÇÕ¹ýÀûÀÎ ±ÝÀ¶Á¶Á÷ÀÌ µÇ´Â °ÍÀÔ´Ï´Ù.<o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü; mso-bidi-font-size: 10.0pt">ÁÖÀÇ ÇÒÁ¡Àº ÆíÁö ³»¿ë Áß¿¡ ¸®½ºÆ®¸¦ ÀÛ¼ºÇÏ´Â ¹ýÀÔ´Ï´Ù<SPAN lang=EN-US>. µ·À» ¼Û±ÝÇÏ°í ³ª¼ <BR>¹Ø¿¡ÀÖ´Â ¸®½ºÆ® 4¸í Áß ¸Ç ù¹øÂ° »ç¶÷Àº Áö¿ì°í ¹øÈ£¸¦ Çϳª¾¿ À§·Î ¿Å°Ü ÀûÀ¸½Ê½Ã¿À.<o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal><SPAN lang=EN-US style="COLOR: black; FONT-FAMILY: µ¸¿òü; mso-bidi-font-size: 10.0pt">1: STANDARD CHARTERED BANK 407-2-5459293-3 MYR : OOI<SPAN style="mso-spacerun: yes"> </SPAN>GUIK<SPAN style="mso-spacerun: yes"> </SPAN>HWA<o:p></o:p></SPAN></P> <P class=MsoNormal><SPAN lang=EN-US style="COLOR: black; FONT-FAMILY: µ¸¿òü; mso-bidi-font-size: 10.0pt">2: STANDARD CHARTERED BANK 407-2-5459294-1 MYR : KIM<SPAN style="mso-spacerun: yes"> </SPAN>JUN<SPAN style="mso-spacerun: yes"> </SPAN>SEOB<o:p></o:p></SPAN></P> <P class=MsoNormal><SPAN lang=EN-US style="COLOR: black; FONT-FAMILY: µ¸¿òü; mso-bidi-font-size: 10.0pt">3: ³óÇù : 121037-52-021361 ¹Úº¹¿°<o:p></o:p></SPAN></P> <P class=MsoNormal><SPAN lang=EN-US style="COLOR: black; FONT-FAMILY: µ¸¿òü; mso-bidi-font-size: 10.0pt">4: ±¹¹Î : 120-21-1095-559 ±è¿µº¸<o:p></o:p></SPAN></P> <P class=MsoNormal><SPAN lang=EN-US style="COLOR: black; FONT-FAMILY: µ¸¿òü; mso-bidi-font-size: 10.0pt">(1¹øÀº »ç¶óÁö°í À§·Î ÇÑľ¿ ¿Ã¸®¸é 2¹øÀÌ1¹ø, 3¹øÀÌ2¹ø, 4¹øÀÌ3¹ø, 4¹øÀÌ ´ç½ÅÀÔ´Ï´Ù.) <BR>4¹ø¿¡ ÀÚ½ÅÀÇ À̸§°ú °èÁ¹øÈ£¸¦ ÀûÀ¸½Ã°í º¹»çÇØ¼ º¸³»½Ã¸é µË´Ï´Ù. (È®·ü1~3%)<BR>¸ÞÀÏÀº ¸¹ÀÌ º¸³¾¼ö·Ï ÁÁ°ÚÁÒ? ±×¸¸Å µ·µµ ¸¹ÀÌ..Áß¿äÇÑ °ÍÀº ´Ù¸¥ »ç¶÷µé¿¡°Ô ÀÌ ÆíÁöó·³ <o:p></o:p></SPAN></P> <P class=MsoNormal><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü; mso-bidi-font-size: 10.0pt">±¤°í¿ë ÆíÁö¸¦ <SPAN style="mso-spacerun: yes"> </SPAN>º¹»çÇØ¼ ¶ç¿ì´Â ÀÏÀÌ ¹Ù·Î ±×°ÍÀÔ´Ï´Ù<SPAN lang=EN-US>. ±×·¯³ª °ÆÁ¤ ÇÏÁö ¸¶½Ê½Ã¿ä. <o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü; mso-bidi-font-size: 10.0pt">¾à<SPAN lang=EN-US> 1,500Åë Á¤µµ¸¦ ÀڱⰡ °¡ÀÔÇÑ Å¬·´ °Ô½ÃÆÇÀ̳ª ¹æ¸í·Ï¿¡ ÀÌ ÆíÁö¸¦ º¹»çÇØ¼ ¿Ã¸³½Ã¿À. <o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal><SPAN lang=EN-US style="COLOR: black; FONT-FAMILY: µ¸¿òü; mso-bidi-font-size: 10.0pt">1)1,500ÅëÀ» º¸³»¸é 15¸íÁ¤µµ°¡ ´ç½Å¿¡°Ô 13,000¿ø¾¿À» º¸³»°Ô µË´Ï´Ù.(15*13,000=195,000¿ø) <BR>2)´ÙÀ½ 15¸íÀÌ °¢°¢ 1,500ÅëÀ» ¹ß¼ÛÇϸé, 225¸íÀÌ 13,000¿ø¾¿ º¸³À´Ï´Ù.(225*13,000=2,925,000¿ø) <BR>3)´ÙÀ½ 225¸íÀÌ °¢°¢ 1,500ÅëÀÇ ¹ß¼ÛÇϸé 3,375¸íÀÌ 13,000¿ø¾¿ º¸³¿.(3375*13,000=43,875,000¿ø) <BR>4)´ÙÀ½3,375¸íÀÌ °¢°¢1,500ÅëÀÇ ¹ß¼ÛÇϸé50,625¸íÀÌ13,000¿ø¾¿ º¸³¿.(50625*13,000=658,125,000¿ø) <BR>5)¿©±â¼ ´ç½ÅÀÇ ¸í´ÜÀÌ »ç¶óÁý´Ï´Ù. (´ç½ÅÀÇ ¸í´ÜÀÌ À§·Î ¿Ã¶ó°¡¼ »ç¶óÁö±â ¶§¹®ÀÌÁÒ) <BR>±×·¯³ª À§¿¡ ÀÖ´Â ¸ðµç µ·À» ´õÇÏ¸é ´ç½ÅÀÌ ¹ÞÀº µ·Àº ? À̰ÍÀº ´ç½ÅÀÌ °è»ê ÇϽʽÿÀ.<o:p></o:p></SPAN></P> <P class=MsoNormal><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü; mso-bidi-font-size: 10.0pt">±×¸®°í »õ·Ó°Ô ÀÚ½ÅÀÌ ´Ù½Ã<SPAN lang=EN-US> 13000¿ø¾¿ º¸³»°í À̸§À» ¹Ø¿¡ ³Ö¾î¾²¸é ´Ù½Ã ¶Ç ½ÃÀÛÇÒ¼ö ÀÖÁö¿ä.<o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü; mso-bidi-font-size: 10.0pt">¸¹Àº È¿°ú°¡ ÀÖ´À³Ä ¾ø´À³Ä´Â ´ç½ÅÀÌ ¾ó¸¶³ª ¸¹Àº ¸ÞÀÏÀ» ¶ç¿ì´À³Ä¿¡ µû¶ó ´Þ¶óÁý´Ï´Ù<SPAN lang=EN-US>. <o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü; mso-bidi-font-size: 10.0pt">±×·¯³ª ¼ø¼°¡ ¹Ù²ï´Ù°Å³ª ´Ù¸£°Ô »ý°¢À» ÇÏ½Ã¸é ¹®Á¦°¡ ¹ß»ý µÉ °ÍÀÔ´Ï´Ù<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü; mso-bidi-font-size: 10.0pt">ÇÒ¸»ÀÌ ¸¹ÀÌ ÀÖ½À´Ï´Ù¸¸ °£´ÜÈ÷ ÁÙ¿´½À´Ï´Ù<SPAN lang=EN-US>. ¿ë±â¸¦ °®°í Çѹø ½ÃµµÇØ º¸¼¼¿ä? <o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal><SPAN style="COLOR: black; FONT-FAMILY: µ¸¿òü; mso-bidi-font-size: 10.0pt">±×·³ µ· ¸¹ÀÌ ¹ö½Ã±æ ¹Ù¶ó¸ç °ÇÅõ¸¦ º÷´Ï´Ù<SPAN lang=EN-US>.<o:p></o:p></SPAN></SPAN></P></DIV> </BODY> </HTML> |
From: ¾ÆÀÌ·¯ºêÀ×±Û¸®½¬<ma...@il...> - 2002-01-27 02:16:33
|
<html> <head> <title>될수밖에 없는 영어 - 아이러브잉글리쉬</title> <meta http-equiv="Content-Type" content="text/html; charset=euc-kr"> <link rel="stylesheet" type="text/css" href="../../common_files/txt.css"> <script language=javascript src=../common_files/swap.js></script> <script language=javascript src=../common_files/adtest.js></script> <script language=javascript> <!-- function Pop_500(Theurl){ Pop_wins=window.open(''+Theurl,'popup','width=516,height=387,left=0,top=0,marginwidth=0,marginheight=0,resizable=0,scrollbars=1,toolbar=0,status=0'); Pop_wins.focus(); } //--> </script> </head> <body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0 bgcolor=#FFFFFF> <table border=0 cellpadding=0 cellspacing=0><tr><td style="padding:10 10 10 13"> <table border=0 cellpadding=0 cellspacing=0 width=653> <tr> <td width=1 bgcolor=#000000></td> <td width=651> <table border=0 cellpadding=0 cellspacing=0 width=651 height=394> <tr> <td> <embed width=651 height=394 src=http://www.ilove-english.co.kr/mail/images/mail.swf></embed></td> </tr> </table> <table border=0 cellpadding=0 cellspacing=0 width=651 height=280> <tr> <td width=326 align=center> <a href="http://file.ytn.co.kr/fs1/general_news/asf/2001/09/17/200k_200109170084.asf"> <img src="http://www.ilove-english.co.kr/mail/sswalaman_20010813/ytn.gif" height=198 border=0 width="266"></a> <p> <b> YTN 뉴스 보기</b> </p> </td> <td width=326 align=center> <p> <b><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="266" height="198"> <param name=movie value="http://www.ilove-english.co.kr/mail/sswalaman_20010813/ani01.swf"> <param name=quality value=high> <embed src="http://www.ilove-english.co.kr/mail/sswalaman_20010813/ani01.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="266" height="198"> </embed> </object></b> <p><b>플래쉬 애니매이션 보기</b> </td> </tr> </table> </td> <td width=1 bgcolor=#000000></td> </tr> </table> <table border=0 cellpadding=0 cellspacing=0 width=653 height=1> <tr> <td bgcolor=#000000></td> </tr> </table> </td></tr></table><br> <table border=0 cellpadding=0 cellspacing=0 width=653> <tr><td> <p align=center>허락없이 메일을 드려 대단히 죄송합니다.<br> (원하지 않으시면 수신 거부를 클릭 해주십시오 ) <a href="mailto:pr...@il...">수신 거부</a></p> </td></tr></table> </body> </html> |
From: Syver E. <syv...@on...> - 2002-01-26 23:37:45
|
This should be a bit better. I tried first to make a subclass of org.python.core.PyFile but I got an error message trying to assign the self._process attribute to self. Anyone knows why? I thought one could assign attributes to subclasses of Java classes, but then I am pretty new in the jython game. class _ProcessFile: def __init__(self, stream, process, name): self._file = org.python.core.PyFile(stream, "'%s'" % name) self._process = process def __getattr__(self, name): return getattr(self._file, name) def __repr__(self): return `self._file` def close(self): self._file.close() return self._process.waitFor() or None def _startProcess(path): r = java.lang.Runtime.getRuntime() try: p = r.exec(path) return p except java.io.IOException, exc: raise OSError(0, exc.toString()) def popen(path, mode='r'): p = _startProcess(path) if mode == 'r': return _ProcessFile(p.getInputStream(), p, path) elif mode == 'w': return _ProcessFile(p.getOutputStream(), p, path) else: raise OSError(0, "Invalid mode", mode) def popen2(path): p = _startProcess(path) return (_ProcessFile(p.getInputStream(), p, path), _ProcessFile(p.getOutputStream(), p,path)) def popen3(path): p = _startProcess(path) return (_ProcessFile(p.getInputStream(), p, path), _ProcessFile(p.getOutputStream(),p, path), _ProcessFile(p.getErrorStream(), p, path)) -- Vennlig hilsen Syver Enstad |
From: Syver E. <syv...@on...> - 2002-01-26 21:52:59
|
"Samuele Pedroni" <ped...@bl...> writes: > Hi. > > [Syver Enstad] > > Thanks, I'll fix it. In my opinion could be much more compliant with > > > CPython without doing anything special. It wasn't meant that way Samuele, you folks are doing a great job with Jython. So great that I have started using it without having a special interest in java. I am just excited by the idea of having to do the least amount possible of porting between CPython and Jython. I just found it to be easy to implement things like a python startup file for interactive sessions in jython, and am thinking about adding more stuff like the popen things. > PS: Properly supporting shell-like programming across platforms > over Java is more painful than it seems. Of course, but sometimes it's ok to have it done semi properly too which is the situation for CPython on windows where many library functions have stripped down functionality. I'll be looking more into these things as I become more familiar with Jython. -- Vennlig hilsen Syver Enstad |
From: Terry H. <ha...@an...> - 2002-01-26 19:51:22
|
dman wrote: > experience. Jython _is_ python -- it is an implementation of the > python language and much of the standard library. The docs on > jython's web site are to alert people to the differences between > cpython and jython and to introduce the special features (javabean > support). O'Reilly is coming out with "Jython Essentials" in March, I'm hoping that will be good. IMHO, based on what I've seen on the jython site, experience with Java is assumed, and Python is taught. I'd REALLY like to see something from the opposite perspective, if any of you folks have the ability/inclination to write it. As a Python programmer, the attraction of Jython is being able to run Python code in new places, such as in-browser applets, and rapidly-installable applications on client computers. This can conceiveably produce a much nicer client-side language for scripting. But, though I can see this possibility, I haven't actually been able to get there yet -- I still know too little about Java. It seems to me, that Jython should ideally reduce the amount of Java you have to know to do Java "things": applets, servlets, applications. Yet all the docs seem to assume you already knew how to do that in Java. If so, though, there's less reason to use Jython. I appreciate that it may be good for less compelling reasons like fast development, but the reason of "Well, I know Python and I don't know Java" is definitely going to be the strongest reason! :) If somebody can walk a newbie to Java through the process of making these various things with Jython, it'd be a real service. Let's just say if it were a book, I'd shell out cash for it. ;) I suppose eventually I will be able to write such a thing myself, but it ought really to be written by someone who knows how to do it. ;) Terry -- ------------------------------------------------------ Terry Hancock ha...@an... Anansi Spaceworks http://www.anansispaceworks.com P.O. Box 60583 Pasadena, CA 91116-6583 ------------------------------------------------------ |
From: dman <ds...@ri...> - 2002-01-26 15:51:11
|
On Sat, Jan 26, 2002 at 05:10:00PM +0530, Jiger Patel wrote: | Hi all, | I am totally new to jython/python. I just wanted to know if there | was anything available on the net for begineers in jython. | Any links to tutorials, sample codes, articles, intro, intermediate topics | like Activestate maintains for python. Something more than the docs that | come with jython. Also is anyone writing Full Docs just the one that comes | with Python. Basically start with the python docs. See Guido's "Tutorial" on python.org or Alan Gauld's tutorial (I don't have URL handy, but google will turn it up) depending on your level of programming experience. Jython _is_ python -- it is an implementation of the python language and much of the standard library. The docs on jython's web site are to alert people to the differences between cpython and jython and to introduce the special features (javabean support). If you're new to programming and want answers to basic questions the python tutor list is a good place to look. (tu...@py...) HTH, -D -- The light of the righteous shines brightly, but the lamp of the wicked is snuffed out. Proverbs 13:9 |
From: Stephen N. <ste...@co...> - 2002-01-26 14:37:04
|
Thanks for your advice Kevin. The CGI server I was using was based on cPython's CGIHTTPServer and the CGI script was in Jython. I changed the #! /local/bin/python to #! /usr/bin/env jython for the server, it detected the environment variable successfully. I'm not sure what the logic is behind this though and I think it is very strange. Anyway all working now! On Fri, 25 Jan 2002, Kevin Butler wrote: > At a guess, I'd say you're using a version of Jython older than 2.1. > > Versions before 2.1 had no support for environment variables, which are pretty necessary for the cgi module... > (and getting environment variables in Jython is just one more performance problem for the jython choice, but that's another story... :-) ) > > try 'jython cgi.py' in the jython/Lib directory, and look for the Shell Environment section. If it is empty, your jython version is too old, and you need to grab the new one from www.jython.org when SourceForge gets the files back up. > > If you are using 2.1, there is evidently another requirement for the cgi module to work. :-( > > kb > > Stephen Naicken wrote: > > > > Hi, > > > > I would like to write a cgi program using Jython as opposed to Python. > > I know this has it's disadvantages regarding performance, but it's just > > something I am playing with. > > > > When I submit a form to the Jython CGI program, it fails to get any > > values (text input) from the form and the cgi.FieldStorage is None. Am > > I correct in saying cgi.FieldStorage() is not supported? > > > > Thanks > > > > Stephen Naicken - ste...@co... > > > > _______________________________________________ > > Jython-users mailing list > > Jyt...@li... > > https://lists.sourceforge.net/lists/listinfo/jython-users > Stephen Naicken "It's all about the game and how you play it" - The Game |