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: Jiger P. <jig...@ho...> - 2002-01-26 11:40:13
|
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. Awaiting ur replies, THanking you, Jiger _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. |
From: <cl...@cl...> - 2002-01-26 07:25:28
|
<HTML> <HEAD> <TITLE>event</TITLE> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Deuc-kr">= <script language=3D"JavaScript"> <!-- function MM_openBrWindow(theURL,winName,features) { //v2=2E0 window=2Eopen(theURL,winName,features); } //--> </script> </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"><div align=3D"center">=20 <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=2Eco=2Ekr/member/re= al=2Easp"> <input type=3D"submit" name=3D"Submit" value=3D"=BC=BA=C0=CE =C0=CE=C1= =F5"> <input type=3D"hidden" name=3D"link_url" value=3D"http://www=2Eclickij=2Eco=2Ekr/re-main=2Easp"></form> <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=2Eco=2Ekr/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>=20 </div> <br> <br></td> </tr> </table> </BODY> </HTML> |
From: ´ºÆ®¸®¼Ç<web...@do...> - 2002-01-26 01:18:27
|
<HTML> <HEAD> <TITLE></TITLE> </HEAD> <BODY> <DIV></DIV> <DIV align=left> </DIV> <HR> </FONT> <DIV></DIV><FONT size=2>본 메일은 정보통신부 권고 사항에 의거 제목에 <B>[광고]</B></FONT></FONT><FONT color=#666666><FONT size=2><FONT color=#000000>라 표시된 광고 메일입니다.</FONT><BR><FONT color=#000000>더 이상 메일을 수신하고 싶지 않으시면 </FONT></FONT></FONT><A href="mailto:do...@ya...?subject=jyt...@li... 의 사용자로써 수신을거부합니다&body=jyt...@li... 을 귀하의 리스트에서 삭제요망!"><FONT color=#000000><FONT size=2>[<FONT color=#0000ff>수신 거부]</FONT></FONT></FONT></A><FONT size=2>를 클릭해 주십시오.</FONT> <DIV></DIV> <P>◎ <FONT size=2>[뉴트리션 포 라이프 사업의 비전]</FONT></P> <P><FONT size=2><FONT size=3> </FONT><A href="http://www.doum119.co.kr"><FONT size=3>http://www.doum119.co.kr</FONT></A><FONT size=3> 에서 자세한 내용 참조하세요</FONT></FONT><FONT size=2><BR><BR>네트워크 마케팅은 소비를 통한 추가소득의 발생이라는 소비자 측면과 <BR>유통 단계의 축소를 통한 매출이익의 증대라는 기업의 목적을 가장 이상적으로 접목시킬 수 있는<BR>새로운 마케팅으로 이미 1941 '뉴트리라이트'(현 Amway의 모기업)라는 회사를 통해 태동하여 <BR>발전을 거듭해 왔습니다.<BR><BR>초기 단계에서의 네트워크 마케팅은 일대일 마케팅 또는 'friendship marketing'이라 하여<BR>먼저 소비자가 된 사업자('독립사업자'의 개념)가 자신이 사용하고 있는 제품을 홍보하고 새로운<BR>판매원을 모집하는 과정으로 이루어졌습니다. 새로운 판매원의 모집에 대한 수당과 그들로부터 <BR>발생한 매출에 대한 보너스를 통해 '소비=사업'이라는 역설적인 상품유통철학을 실현하기 시작한 것입니다.<BR><BR>1950년대 스텐리(가정용품)를 시작으로 네트워크 마케터들에 의해 창업된 회사들은 메리케이애시<BR>(가정용품 및 화장품), 메리크로울리(홈 인테리어), 브라우이 외이스(타파웨어) 등으로 초기 <BR>네트워크 마케팅 회사들을 형성했습니다.<BR><BR>우리나라에는 91년말 '방문판매등에 관한 법률'제정 이후 암웨이, 뉴스킨, 허블라이프 등의 회사가<BR>진출해 활발한 시장점유를 이루어 냈습니다. 현재 200개가 넘는 수많은 네트워크 마케팅 회사를 통해<BR>오늘도 수많은 사람이 새로운 사업을 시작하고 또 그 보다 어쩌면 더 많은 사람들이 처음의<BR>꿈을 접고 포기하고 있습니다. 또한 수많은 사람들이 네트워크 마케팅을 통해 이미 경제적인 자유를<BR>얻었으며, 그보다 어쩌면 더 많은 사람들이 "난 사람을 설득하는 능력이 부족해" 라고 스스로 <BR>위로하며 중도하차하기도 합니다.<BR><BR>그럼 네트워크 마케팅의 성공요인은 무엇입니까?<BR><BR>그 어떤 성공자에게 물어도 그 대답은 하나일 것입니다. 보상플랜이 다르고 제품의 종류가 다르다 <BR>하더라도 여러분을 성공으로 이끌 단 하나의 단어.<BR><BR>그것은 '꿈' 입니다.<BR><BR>네트워크 마케팅 사업을 하면서 여러분은 자신의 꿈과 다시 만나게 됩니다.<BR>자신의 꿈과 다시 만나지 않은 채 혹시나 시작한 사업이 있다면 과감히 접으십시오.<BR><BR>"Build your dream first!"<BR><BR>구체적이고 시각화된 꿈을 갖고 자신의 꿈이 이루어질 것을 믿고 다른 사람의 꿈을 이루어지게 <BR>하기위해 여러분의 네트웍을 건설하십시오. 네트워크 마케팅이라는 수단은 그 다음입니다.<BR><BR>초기 사업가들이 가장 쉽게 범하는 오류중의 하나가 바로 그것입니다. 마케팅을 이해하고 보상플랜에<BR>만족해하고 스폰서가 정말 나의 성공을 바라고 있다는 것을 알고 시작하지만 곧 자신의 <BR>파트너(Down-line)를 찾지 못해 초조해하고 시간이 흐름에 따라 후원하고자 하는 사람을 파트너가 <BR>아닌 자신의 그룹을 구성할 구성원으로만 생각하게 됩니다. 그때부터 자신은 그 사람의 성공 <BR>후원자가 아닌 자신의 그룹관리대상으로 생각하게 되는 것입니다. 다시한번 말씀드리지만 여러분은 후원하고자 하는 <BR>사람의 성공을 진심으로 바라고 있습니까? 사업적으로는 많은 대화를 나누면서 <BR>정작 그 사람이 어렸을 적 가졌다 지금은 포기한 꿈이 무엇인지도 모르고 후원을 하고 있을 수 있단 말입니다.<BR><BR>다시 네트워크 마케팅으로 돌아옵시다.<BR><BR>국내에 네트워크 마케팅이라는 단어가 생소할 때, 많은 사람들이 다단계 또는 방문판매로 인식하고 <BR>있었을 90년초에 한 외국 네트워크 마케팅회사가 국내에 진출을 시도하고 있었습니다. 물론 그러한<BR>정보를 먼저 접한 소수 그룹의 사람들이 사업설명회에 참석했고 제품설명을 들었습니다. 대기업 <BR>연구원으로 근무했던 ㄱ연구원도 그 사람중의 한명이었습니다. <BR><BR>ㄱ연구원은 자신의 가장 친한 동료였던 ㅈ연구원에게 소개했고 사업설명회 장소로 갔습니다.<BR>그러나 ㅈ연구원은 반 도 채 안차 있는 교육장을 보고 실망했습니다. 사람들이 이렇게 관심이 없는데<BR>자신이 어떻게 다른 사람을 후원할 수 있을까 고민하다 정중히 거절했답니다.<BR><BR>그러나, <BR><BR>3~4개월이 지나고 그 교육장소는 항상 만원이었고 다시 많은 사람들이 거기서 분리돼 새로운 <BR>사무실로 독립하게 되었습니다. 처음에 초대되었던 그 사람은 앞으로 더 많은 사람들이 그 정보를 <BR>접하게 될 것이고 그 만큼 자신의 사업기회가 많다는 것을 알지 못했던 것입니다.<BR><BR>당신이 출근길 지하철안에서 신문을 통해 읽은 기사는 더이상 뉴스가 아닙니다.<BR>수백만 아니 수천만명이 이미 그 정보를 소유하고 있기 때문입니다.<BR><BR>정보는 일반적 관심으로 신뢰되지 않으며, 객관적 방법으로 증명되지 않는 특성을 갖고 있습니다.<BR>많은 사람들이 경험해보고 신뢰하게 되었을 때는 더 이상 정보가 아닙니다.<BR>국내에서의 암웨이 사업이 그 전형적인 예가 될 것입니다.</FONT><BR><BR> <A href="http://www.doum119.co.kr">http://www.doum119.co.kr</A> 에서 자세한 내용 참조하세요</P> <P>원치 않은 내용이었다면 엎드려 사죄 드립니다<BR>끝까지 읽어주셔서 감사드립니다</P> <P> <BR><BR><BR><BR><BR><BR><BR><BR></P> </BODY> </HTML> |
From: Kevin B. <kb...@ca...> - 2002-01-26 01:09:32
|
>>> import traceback >>> from java.lang import * >>> try: ... String( None ) ... except Exception, x: ... print "As Python:" ... traceback.print_exc() ... print "As Java:" ... x.printStackTrace() ... As Python: Traceback (most recent call last): File "<console>", line 2, in ? java.lang.NullPointerException: java.lang.NullPointerException As Java: java.lang.NullPointerException at java.lang.String.<init>(String.java:193) at java.lang.reflect.Constructor.newInstance(Native Method) at org.python.core.PyReflectedConstructor.__call__(PyReflectedConstructor.java) at org.python.core.PyJavaInstance.__init__(PyJavaInstance.java) at org.python.core.PyJavaClass.__call__(PyJavaClass.java) at org.python.core.PyObject.__call__(PyObject.java) at org.python.pycode._pyx9.f$0(<console>:2) at org.python.pycode._pyx9.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) >>> kb Yang Wang wrote: > > Hi All, > > I have read the book "Learning Python" and almost all online docs but > could not find info on how to print out the entire stack trace of Java > Exceptions. Any ideas? > > Thanks in advance. > > Yang > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |
From: Carl P. <c.j...@hu...> - 2002-01-26 01:06:49
|
Yang, to get exception information, you need to use the sys module. sys.exc_info() will get you a triple. The third component of which is a traceback object. Using the traceback module you can then print out the exception stack as you require. Hope that helps, Carl. -- Dr. Carl Pulley (Lecturer) School of Computing and Mathematics, University of Huddersfield, email: c.j...@hu... Huddersfield WWW: http://scom.hud.ac.uk/scomcjp |
From: Kevin B. <kb...@ca...> - 2002-01-26 01:04:42
|
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 |
From: Yang W. <yw...@pr...> - 2002-01-26 00:54:45
|
Hi All, I have read the book "Learning Python" and almost all online docs but could not find info on how to print out the entire stack trace of Java Exceptions. Any ideas? Thanks in advance. Yang |
From: Stephen N. <ste...@co...> - 2002-01-26 00:11:17
|
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... |
From: Samuele P. <ped...@bl...> - 2002-01-25 23:10:03
|
[Christopher T. Day] >Today, anyway, I am unable to download jython 2.1 from sourceforge - there are no files available From: Nusrat Hamid <nus...@sd...> > Hi, > > Your download page does not work. The 'Download Jython2.1 link points to a > sourceforge page, but there is no link to download the compiled versions. Do > we have to go thru CVS to get it? > Seems a SF problem, for solidarity Python reports no files too <wink>. PS: yup, it's no fun, let's see if they fix that and find everybody's files again ... |
From: Jan W. <j.w...@sc...> - 2002-01-25 15:26:16
|
On Fri, Jan 25, 2002 at 12:48:13PM +0100, Samuele Pedroni wrote: > Hi. >=20 > Please, submit a bug report on SF sf.net/projects/jython, > with the content of your messages. Well, I found a Java bug relating to this (http://developer.java.sun.com/developer/bugParade/bugs/4291305.html): Th= e loading of classes fails if the html page with the applet tag is loaded v= ia HTTPS. In my case it is no problem to have the html loaded via HTTP, so this wor= ks for me now (the jarfile is still loaded via https). I have submitted my messages to SF. Cheerio, --=20 J.W...@sc... - Fon +4970719457-257 Fax-211 science+computing ag - Hagellocher Weg 71-75 - 72070 T=FCbingen One of the great skills in using any language is knowing what not to use,= what not to say. ... There's that simplicity thing again. (Ron Jeffries) |
From: Ype K. <yk...@xs...> - 2002-01-25 14:51:36
|
Edgardo, >Hi, >I'm executing a script of jython 2.0 from a servlet and I need to reduce >the answer time. >At this moment, I'm compiling and saving the compiled code in memory in >order to not >compile the following times. >The question is: Does it exist other way to decrease the answer time. Have a look at: http://www.python.org/doc/essays/list2str.html and, when that doesn't help: http://groups.google.com/groups?hl=en&frame=right&th=228f0d2031db7685&seekm=3C4883DC.211D605A%40accessforall.nl#link3 Have fun, Ype > > > >_______________________________________________ >Jython-users mailing list >Jyt...@li... >https://lists.sourceforge.net/lists/listinfo/jython-users -- |
From: Edgardo G. <edg...@cr...> - 2002-01-25 13:01:58
|
Hi, I'm executing a script of jython 2.0 from a servlet and I need to reduce the answer time. At this moment, I'm compiling and saving the compiled code in memory in order to not compile the following times. The question is: Does it exist other way to decrease the answer time. |
From: Samuele P. <ped...@bl...> - 2002-01-25 12:29:55
|
Oops > > This is in no particular order, but confronted with such > a least many mantainers have/will pick * as the item ^list > with the lowest priority. Jython is not primarily about that. > |
From: Samuele P. <ped...@bl...> - 2002-01-25 12:09:23
|
Hi. [Syver Enstad] > Thanks, I'll fix it. In my opinion could be much more compliant with > CPython without doing anything special. Bare opinions count so little <wink>. Btw some people do care about this so you will see some improvements and we have had some improvement (os.system ...). > As I don't know java, this is > maybe more important to me than to people who are used to the java > libraries and don't notice problems when using standard python modules > and modules they've written for CPython. It's is simpler than that. It's a matter of agendas. See - Core language compatibility - Support for shell-like programming * - Introspection/analysis tools compatibility - Support for the "internet protocols" CPython modules - Better Java/Java frameworks integration - Fixing bugs - Refactoring, avoiding that the codebase becomes a mess This is in no particular order, but confronted with such a least many mantainers have/will pick * as the item with the lowest priority. Jython is not primarily about that. regards, Samuele Pedroni. PS: Properly supporting shell-like programming across platforms over Java is more painful than it seems. |
From: Samuele P. <ped...@bl...> - 2002-01-25 11:53:16
|
Hi. Please, submit a bug report on SF sf.net/projects/jython, with the content of your messages. > If the pawt package is imported the error occurs. If the statement is commented > out, the applet works... > Then don't use pawt for the moment <wink>. > Is it perhaps related to the comment in org/python/core/imp.java, line 31: > // Simplistic implementation > // Some InputStream's might require multiple read's to get it all... > private static byte[] readBytes(InputStream fp) { > ? > Nope. It's a bug in some 3rdy part classloader loading logic that throws a wrong expection when it should simply report that a class is not there. It is not directly Jython fault but Jython should be better prepared to deal with this or offer escapes. It is also possible that the new logic for relative imports in Jython makes it more vulnerable. We had a similar report from A.M. Kuchling, but we miss a bug report <wink>. Thanks, Samuele Pedroni. |
From: Jan W. <j.w...@sc...> - 2002-01-25 10:32:09
|
On Thu, Jan 24, 2002 at 05:39:47PM +0100, Jan Wender wrote: > Hi all, >=20 > I've got a problem with a jython applet which shall be loaded via > HTTPS. HTTP without the S works, no problem at all. I now have a small jython file which shows the problem: import sys import java import javax =20 import pawt =20 class Xtest(javax.swing.JApplet): def init(s): s.getContentPane().add(javax.swing.JLabel("Applet")) #bag =3D pawt.GridBag(s.getContentPane()) #bag.addRow(javax.swing.JLabel("Applet")) #bag.add(javax.swing.JTextArea("%s" % (sys.registry,))) made a jar-file of it: jythonc -d -a -j Xtest.jar Xtest.py If the pawt package is imported the error occurs. If the statement is com= mented out, the applet works... Is it perhaps related to the comment in org/python/core/imp.java, line 31= : // Simplistic implementation // Some InputStream's might require multiple read's to get it all... private static byte[] readBytes(InputStream fp) { ? Cheerio, --=20 J.W...@sc... - Fon +4970719457-257 Fax-211 science+computing ag - Hagellocher Weg 71-75 - 72070 T=FCbingen Der Stecker war locker und das Token ist herausgefallen. Es muss irgendwo auf dem Boden liegen. Wenn Sie es gefunden haben, melden Sie sich bitte w= ieder. (Di= lbert) |
From: <Arn...@si...> - 2002-01-25 08:53:20
|
Works fine on our site. We have added the properties in the jython script. regards Arno > -----Urspr=FCngliche Nachricht----- > Von: Joshua Reynolds [mailto:jo...@is...] > Gesendet: Donnerstag, 24. Januar 2002 03:30 > An: jyt...@li... > Betreff: [Jython-users] orb.properties problems >=20 >=20 > Has anyone tried using a different CORBA ORB with jython. I=20 > am tring to=20 > use jython to debug some of my java code (which uses jacorb) and it=20 > doesn't seem to be using the orb.properties file. The java=20 > interpreter=20 > works fine when run in isolation. >=20 > Any suggestions. > --=20 > Joshua Reynolds | IT >=20 > Isogen International > Office: 512-380-0347 > Cell: 512-743-3865 > 1016 La Posada Suite 240 > Austin, TX 78752 >=20 >=20 > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users >=20 |
From: Syver E. <syv...@on...> - 2002-01-25 04:54:03
|
dman <ds...@ri...> writes: > On Thu, Jan 24, 2002 at 10:57:55AM +0100, Syver Enstad wrote: > | dman <ds...@ri...> writes: > | > > | > Sure you can -- the '#' makes it a comment as far as python is > | > concerned; it doesn't matter that your shell ignores it too. > | > | I know, I know, but it's no point for me in doing so. > > The point, if you use emacs and the given code, is for it to determine > > the correct interpreter to use :-). I know that too, but I am a bit pissed off that I can't have the shebang stuff on the OS that I am running without too much hassle. I once went to some length to get it to work on windows, something like this: --begin somepythonscript.bat-- @python -x %0 %* rem = """ goto :end """ # python code below here ..... .... --end-- But the rem line is outputted by the shell, and frankly it's pretty ugly. Now this was completely off topic sorry. -- Vennlig hilsen Syver Enstad |
From: Syver E. <syv...@on...> - 2002-01-25 04:45:01
|
Kevin Butler <kb...@ca...> writes: > - #! line (a la 'get-auto-mode') > - import of java/javax/org/com packages (these imply jpython) > - default to cpython (not py-default-interpreter, because the imports > test can only detect jpython) That is more to my liking. I'll try it out when I find the time Kevin. -- Vennlig hilsen Syver Enstad |
From: Syver E. <syv...@on...> - 2002-01-25 04:40:27
|
Thanks, I'll fix it. In my opinion could be much more compliant with CPython without doing anything special. As I don't know java, this is maybe more important to me than to people who are used to the java libraries and don't notice problems when using standard python modules and modules they've written for CPython. -- Vennlig hilsen Syver Enstad |
From: Samuele P. <ped...@bl...> - 2002-01-24 20:51:25
|
Hi. > Shouldn't the following be equivalent? I can't seem to get the jreload > version to work. No they are not equivalent. So the error you get is not a bug, although I see what you want to achieve so see below. > start jython with some.jar in cp, then: > > from org import somepackage if I do: import org org2 = org from org2 import somepackage it fails, same story below. > OR start jython with no classpath: > > import jreload > ls = jreload.makeLoadSet('myls', ["/path/to/some.jar"]) > from myls import org > from org import somepackage > ImportError: cannot import name somepackage from p.k.g import something p.k.g referes to the packages namespace, nothing to do with the current local/global scope. from myls.org import somepackage works but - I know - is not what you want. If you know a point in the package hierarchy in your jar that is disjunct from the hiearchy on classpath and sys.path (NB typically org is not such a point <wink>), e.g. org.iMnotToBeFoundAlongClassPathAndSysPath org.empire.iMjustInTheJar you can do the following: import sys import jreload ls = jreload.makeLoadSet('someJarLS', ["/path/to/some.jar"]) sys.modules['org.iMnotToBeFoundAlongClassPathAndSysPath']=ls.org.iMnotToBeFound AlongClassPathAndSysPath sys.modules['org.empire.iMjustInTheJar']=ls.org.empire.iMjustInTheJar then from org.empire.iMjustInTheJar import somepackage from org.iMnotToBeFoundAlongClassPathAndSysPath import somepackage will work but from org import iMnotToBeFoundAlongClassPathAndSysPath will not. Btw if you play the trick with a point not disjunct, you will get some major troubles. [Yup it is a hack, but the limitations of jreload come from the fact that it allows reloading, sys.path and classpath don't.] regards, Samuele Pedroni. |
From: <ba...@ba...> - 2002-01-24 17:46:14
|
<HTML> <HEAD> <TITLE>=BD=C3=BE=C8</TITLE> </HEAD> <BODY bgcolor=3D"#FFFFFF"> <!-- URL's used in the movie--> <A HREF=3Dhttp://www.banknet.114></A> <A=20 HREF=3Dhttp://www.banknet114.com/loan/loan.html></A> <!-- text used in th= e=20 movie--> <!--3 --><OBJECT classid=3D"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" =20 codebase=3D"http://download.macromedia.com/pub/shockwave/cabs/flash/swfla= sh.cab #version=3D5,0,0,0" WIDTH=3D630 HEIGHT=3D700> <PARAM NAME=3Dmovie VALUE=3D"http://www.banknet114.com/dm/dm2.swf"> <PAR= AM=20 NAME=3Dquality VALUE=3Dhigh> <PARAM NAME=3Dbgcolor VALUE=3D#FFFFFF> <EMBE= D=20 src=3D"http://www.banknet114.com/dm/dm2.swf" quality=3Dhigh bgcolor=3D#FF= FFFF=20 WIDTH=3D630 HEIGHT=3D700 TYPE=3D"application/x-shockwave-flash"=20 PLUGINSPAGE=3D"http://www.macromedia.com/shockwave/download/index.cgi?P1_= Prod_V ersion=3DShockwaveFlash"></EMBED> </OBJECT> </BODY> </HTML> |
From: Jan W. <j.w...@sc...> - 2002-01-24 16:42:25
|
Hi all, I've got a problem with a jython applet which shall be loaded via HTTPS. HTTP without the S works, no problem at all. The applet is frozen with jythonc -d Haupt.py and then all needed jar fil= es get extracted to the jpywork directory. Afterwards the jpywork directory is j= arred into the applet.jar file. This file then goes to the server. If I try to load the applet via am HTTPS server (CPython-driven slightly modified m2crypto SSLServer or stunnel before the same server without SSL= ), I get errors I do not understand. Somebody an idea? The applet runs in Mozilla with the Sun java 1.3.1_01 plugin. Traceback from plugin log window ("wird ge=F6ffnet" means opening): Determine if the applet requests to install any JAR Jar cache option: null Jar archive(s): null Jar cache version(s): null Applet Installation finished. Wird ge=F6ffnethttps://sojus:7743/applet.jar Connecting https://sojus:7743/applet.jar Wird ge=F6ffnethttps://sojus:7743/null Connecting https://sojus:7743/null Wird ge=F6ffnethttps://sojus:7743/venus/sys.class Connecting https://sojus:7743/venus/sys.class Java Traceback: at org.python.core.Py.JavaError(Py.java) at org.python.core.Py.findClassEx(Py.java) at org.python.core.SysPackageManager.findClass(SysPackageManager.java) at org.python.core.PackageManager.findClass(PackageManager.java) at org.python.core.SysPackageManager.findClass(SysPackageManager.java) at org.python.core.PyJavaPackage.__findattr__(PyJavaPackage.java) at org.python.core.PackageManager.lookupName(PackageManager.java) at org.python.core.PyModule.impAttr(PyModule.java) at org.python.core.imp.import_next(imp.java) at org.python.core.imp.import_name(imp.java) at org.python.core.imp.importName(imp.java) at org.python.core.ImportFunction.load(__builtin__.java) at org.python.core.ImportFunction.__call__(__builtin__.java) at org.python.core.PyObject.__call__(PyObject.java) at org.python.core.__builtin__.__import__(__builtin__.java) at org.python.core.imp.importOne(imp.java) at venus.master$_PyInner.main$53(master.java:1233) at venus.master$_PyInner.call_function(master.java:453) at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyCode.call(PyCode.java) at org.python.core.imp.createFromCode(imp.java) at org.python.core.imp.createFromClass(imp.java) at org.python.core.imp.loadPrecompiled(imp.java) at org.python.core.imp.loadFromPath(imp.java) at org.python.core.PyModule.impAttr(PyModule.java) at org.python.core.imp.import_next(imp.java) at org.python.core.imp.import_logic(imp.java) at org.python.core.imp.import_name(imp.java) at org.python.core.imp.importName(imp.java) at org.python.core.ImportFunction.load(__builtin__.java) at org.python.core.ImportFunction.__call__(__builtin__.java) at org.python.core.PyObject.__call__(PyObject.java) at org.python.core.__builtin__.__import__(__builtin__.java) at org.python.core.imp.importOne(imp.java) at getPass$_PyInner.main$7(getPass.java:266) at getPass$_PyInner.call_function(getPass.java:93) at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyCode.call(PyCode.java) at org.python.core.imp.createFromCode(imp.java) at org.python.core.imp.createFromClass(imp.java) at org.python.core.imp.loadPrecompiled(imp.java) at org.python.core.imp.loadFromPath(imp.java) at org.python.core.imp.loadFromPath(imp.java) at org.python.core.imp.load(imp.java) at org.python.core.imp.import_next(imp.java) at org.python.core.imp.import_name(imp.java) at org.python.core.imp.importName(imp.java) at org.python.core.ImportFunction.load(__builtin__.java) at org.python.core.ImportFunction.__call__(__builtin__.java) at org.python.core.PyObject.__call__(PyObject.java) at org.python.core.__builtin__.__import__(__builtin__.java) at org.python.core.imp.importOne(imp.java) at Haupt$_PyInner.main$3(Haupt.java:79) at Haupt$_PyInner.call_function(Haupt.java:45) at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyCode.call(PyCode.java) at org.python.core.imp.createFromCode(imp.java) at org.python.core.Py.initProxy(Py.java) at Haupt.__initProxy__(Haupt.java:225) at Haupt.<init>(Haupt.java:203) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at sun.applet.AppletPanel.createApplet(AppletPanel.java:579) at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1178) at sun.applet.AppletPanel.runLoader(AppletPanel.java:515) at sun.applet.AppletPanel.run(AppletPanel.java:293) at sun.plugin.navig.motif.MotifAppletViewer.maf_run(MotifAppletViewer.java:1= 27) at sun.plugin.navig.motif.MotifAppletViewer.run(MotifAppletViewer.java:123) at java.lang.Thread.run(Thread.java:484) Traceback (innermost last): File "/home/ian/venus/200gui/gui/Haupt.py", line 0, in main File "/home/ian/venus/200gui/gui/getPass.py", line 0, in main File "/home/ian/venus/200gui/gui/venus/master.py", line 0, in main java.lang.ClassFormatError: venus/sys (Bad magic number) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:142) at sun.plugin.security.PluginClassLoader.findClass(PluginClassLoader.java:25= 2) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:108) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at org.python.core.Py.findClassEx(Py.java) at org.python.core.SysPackageManager.findClass(SysPackageManager.java) at org.python.core.PackageManager.findClass(PackageManager.java) at org.python.core.SysPackageManager.findClass(SysPackageManager.java) at org.python.core.PyJavaPackage.__findattr__(PyJavaPackage.java) at org.python.core.PackageManager.lookupName(PackageManager.java) at org.python.core.PyModule.impAttr(PyModule.java) at org.python.core.imp.import_next(imp.java) at org.python.core.imp.import_name(imp.java) at org.python.core.imp.importName(imp.java) at org.python.core.ImportFunction.load(__builtin__.java) at org.python.core.ImportFunction.__call__(__builtin__.java) at org.python.core.PyObject.__call__(PyObject.java) at org.python.core.__builtin__.__import__(__builtin__.java) at org.python.core.imp.importOne(imp.java) at venus.master$_PyInner.main$53(master.java:1233) at venus.master$_PyInner.call_function(master.java:453) at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyCode.call(PyCode.java) at org.python.core.imp.createFromCode(imp.java) at org.python.core.imp.createFromClass(imp.java) at org.python.core.imp.loadPrecompiled(imp.java) at org.python.core.imp.loadFromPath(imp.java) at org.python.core.PyModule.impAttr(PyModule.java) at org.python.core.imp.import_next(imp.java) at org.python.core.imp.import_logic(imp.java) at org.python.core.imp.import_name(imp.java) at org.python.core.imp.importName(imp.java) at org.python.core.ImportFunction.load(__builtin__.java) at org.python.core.ImportFunction.__call__(__builtin__.java) at org.python.core.PyObject.__call__(PyObject.java) at org.python.core.__builtin__.__import__(__builtin__.java) at org.python.core.imp.importOne(imp.java) at getPass$_PyInner.main$7(getPass.java:266) at getPass$_PyInner.call_function(getPass.java:93) at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyCode.call(PyCode.java) at org.python.core.imp.createFromCode(imp.java) at org.python.core.imp.createFromClass(imp.java) at org.python.core.imp.loadPrecompiled(imp.java) at org.python.core.imp.loadFromPath(imp.java) at org.python.core.imp.loadFromPath(imp.java) at org.python.core.imp.load(imp.java) at org.python.core.imp.import_next(imp.java) at org.python.core.imp.import_name(imp.java) at org.python.core.imp.importName(imp.java) at org.python.core.ImportFunction.load(__builtin__.java) at org.python.core.ImportFunction.__call__(__builtin__.java) at org.python.core.PyObject.__call__(PyObject.java) at org.python.core.__builtin__.__import__(__builtin__.java) at org.python.core.imp.importOne(imp.java) at Haupt$_PyInner.main$3(Haupt.java:79) at Haupt$_PyInner.call_function(Haupt.java:45) at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyCode.call(PyCode.java) at org.python.core.imp.createFromCode(imp.java) at org.python.core.Py.initProxy(Py.java) at Haupt.__initProxy__(Haupt.java:225) at Haupt.<init>(Haupt.java:203) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at sun.applet.AppletPanel.createApplet(AppletPanel.java:579) at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1178) at sun.applet.AppletPanel.runLoader(AppletPanel.java:515) at sun.applet.AppletPanel.run(AppletPanel.java:293) at sun.plugin.navig.motif.MotifAppletViewer.maf_run(MotifAppletViewer.java:1= 27) at sun.plugin.navig.motif.MotifAppletViewer.run(MotifAppletViewer.java:123) at java.lang.Thread.run(Thread.java:484) java.lang.ClassFormatError: java.lang.ClassFormatError: venus/sys (Bad ma= gic number) Thanks reading so far and for any help, Cheerio, --=20 J.W...@sc... - Fon +4970719457-257 Fax-211 science+computing ag - Hagellocher Weg 71-75 - 72070 T=FCbingen The nice thing about standards is that there are so many of them to choos= e from. (Andy Tanenbaum= ) |
From: Kevin B. <kb...@ca...> - 2002-01-24 16:35:02
|
One additional caveat: 5- close() doesn't give return process return code correctly - it should be something like: return self.process.exitValue() or None kb Kevin Butler wrote: > import java > import org > def popen(path, mode='r'): > r = java.lang.Runtime.getRuntime() > p = r.exec(path) > return org.python.core.PyFile( > p.getInputStream(), > p.getOutputStream(), > mode > ) > Note the following caveats: > > 1- PyFile is an internal class. It may change! Don't rely on it in code you expect to keep working later. > > 2- To get stderr, we'd need to do some wrapping of the stdout & stderr streams into one. > > 3- I don't think the mode handling is quite right. :-) > > 4- Shell built-ins don't work, because we're not invoking a shell |
From: Kevin B. <kb...@ca...> - 2002-01-24 15:54:56
|
Syver Enstad wrote: > > Syver Enstad <syv...@on...> writes: > > Here's a quick hack os.popen, it only works for reading at the time, > > but would be easy to fix I believe. > > > > def popen(path, mode='r'): > > r = java.lang.Runtime.getRuntime() > > p = r.exec(path) > > if mode == 'w': > > return org.python.core.PyFile(p.getInputStream()) > > elif mode == 'r': > > return org.python.core.PyFile(p.getOutputStream()) > > else: > > raise OSError(0, "Invalid mode", mode) > > the only trouble I have so far is that the right ctor for PyFile > doesn't seem to be because, the PyFile returned is always a PyFile in > read mode, even though PyFile has one ctor for java.io.InputStream and > one for java.io.OutputStream. This is because of the wonderful naming convention of the getInputStream/getOutputStream methods :-) : Process.getOutputStream() returns an OutputStream representing stdin (so you can write to the process's stdin) Process.getInputStream() returns an InputStream representing stdout (so you read the process's stdout) Process.getErrorStream() returns an InputStream representing stderr This suggests you need to reverse the 'r' and 'w', and probably end up w/ something like this: import java import org def popen(path, mode='r'): r = java.lang.Runtime.getRuntime() p = r.exec(path) return org.python.core.PyFile( p.getInputStream(), p.getOutputStream(), mode ) f = popen( "echo hello" ) print f.read() f.close() f = popen( "cat" ) f.write( "This is\na test\nof write\n" ) f.flush() for i in range( 3 ): print f.readline(), f.close() try: popen( "set" ) assert "Should throw IOException: CreateProcess "\ "because set is a built-in" except java.io.IOException: print "shell built-ins not supported, " \ "because we're not invoking a shell" Note the following caveats: 1- PyFile is an internal class. It may change! Don't rely on it in code you expect to keep working later. 2- To get stderr, we'd need to do some wrapping of the stdout & stderr streams into one. 3- I don't think the mode handling is quite right. :-) 4- Shell built-ins don't work, because we're not invoking a shell kb > > > -- > > Vennlig hilsen > > Syver Enstad > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |