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: Noel R. <noe...@at...> - 2002-03-21 17:56:46
|
I've created a new Source Forge project at <http://jythontools.sourceforge.net>. The purpose of the project is to provide clearinghouse for Jython-specific modules and libraries. The idea is to provide a home for useful code that, for one reason or another, is not suitable for the core Jython distribution. I've started the project with a Jython/Swing implementation of the PyUnit GUI interface. I'd consider it to be beta code right now, and you can check it out of Source Forge CVS at <http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jythontools/jythontools/>. Anybody who is interested in the PyUnit tool is encouraged to try it out -- I've been using it a little, and it seems stable. Bug reports should be sent to <noe...@at...>. I'm planning on adding some more tools to the project soon, including some Jython/Velocity tools and some general utilities and wrappers. Anybody who has suggestions for tools, or would like to participate or contribute code, should also email me at <noe...@at...> Thanks, and I hope you find this useful, Noel Rappin |
From: ±è¹ÌÈñ <ki...@dr...> - 2002-03-21 16:03:40
|
<html> <p align=3D"center" style=3D"line-height:13px;"><span style=3D"font-size:9pt;">=B1=CD=C7=CF=C0=C7 =B8=DE=C0=CF=C1=D6=BC=D2=B4=C2= =C0=A5=BC=AD=C7=CE=C1=DF, <b>http://www=2Exxxxxxxx=2Ecom/</b>=20 <br>=BF=A1=BC=AD =BE=CB=B0=D4 =B5=C8=B0=CD=C0=CC=B8=E7, E-Mail =C1=D6=BC=D2= =BF=DC=BF=A1, =B4=D9=B8=A5 =C1=A4=BA=B8=B4=C2 =B0=AE=B0=ED =C0=D6=C1=F6 =BE=CA=BD=C0=B4=CF=B4=D9=2E<br>=C1=A4=C5=EB=BA=CE =B1=C7=B0=ED=BB=E7=C7=D7= =BF=A1 =C0=C7=B0=C5 =C1=A6=B8=F1=BF=A1 </span><B><span style=3D"font-size:9pt;">[=B1=A4=B0=ED]</span></B><span style=3D"font-size:9pt;">=B6=F3=B0=ED =C7=A5=B1=E2=C7=D1 =B8=DE=C0=CF=C0=D4= =B4=CF=B4=D9=2E =BF=F8=C4=A1 =BE=CA=C0=B8=B8=E9 </span><a href=3D"mailto:numbers13@dreamwiz=2Ecom?subject=3D=BC=F6=BD=C5=B0= =C5=BA=CE"><b><span style=3D"font-size:9pt;">=BC=F6=BD=C5=B0=C5=BA=CE</span></b></a><span style=3D"font-size:9pt;">=B8=A6 =B4=AD=B7=AF=C1=D6=BC=BC=BF=E4</span> <head> <title>=C8=FB=B5=E9=B0=D4=B0=D4=BD=C3=C6=C7=C0=BB=C3=A3=BE=C6=B4=D9=B4=CF=B8= =E7,=C1=D6=BC=D2=B8=A6=BA=B9=BB=E7=C7=CF=B0=ED,=C6=E4=C0=CC=C1=F6=B8=A6=BC= =B3=C1=A4=C7=CF=B0=ED=2E=2E=2E=B3=CA=B9=AB=C8=FB=B5=E9=C1=D2 ?</title> <meta name=3D"generator" content=3D"Namo WebEditor v4=2E0"> </head> <body bgcolor=3D"white" text=3D"black" link=3D"blue" vlink=3D"purple" alin= k=3D"red" leftmargin=3D"0" marginwidth=3D"0" topmargin=3D"0" marginheight=3D"0"> <table align=3D"center" style=3D"BORDER-RIGHT: black 1px outset; BORDER-TO= P: black 1px outset; BORDER-LEFT: black 1px outset; BORDER-BOTTOM: black 1px outset" border=3D"0" cellpadding=3D"0" cellspacing=3D"0" width=3D"601"> <tr> <td width=3D"601" colspan=3D"2"> <p><a href=3D"http://www=2Eokmat=2Ecom/s10/" target=3D"_blank"= ><img src=3D"http://www=2Eokmat=2Ecom/image/mail=2Ejpg" width=3D"600" height=3D"= 158" border=3D"0"></a></p> </td> </tr> <tr> <td width=3D"601" colspan=3D"2"> <p> </p> </td> </tr> <tr> <td width=3D"601" colspan=3D"2"> <p><img src=3D"http://www=2Eokmat=2Ecom/image/mail1=2Ejpg" wid= th=3D"185" height=3D"50" border=3D"0"></p> </td> </tr> <tr> <td width=3D"19" rowspan=3D"2"> <p> </p> </td> <td width=3D"582"> <p><span style=3D"FONT-S= IZE: 10pt"=20 >=C8=FB=B5=E9=B0=D4 =B0=D4=BD=C3=C6=C7=C0=BB =C3=A3=BE=C6=B4=D9=B4=CF= =B8=E7,=20 =C1=D6=BC=D2=B8=A6 =BA=B9=BB=E7=C7=CF=B0=ED, =C6=E4= =C0=CC=C1=F6=B8=A6 =BC=B3=C1=A4=C7=CF=B0=ED=2E=2E=2E =B3=CA=B9=AB =C8=FB=B5= =E9=C1=D2? One=20 Click Mail=C0=BB =BB=E7=BF=EB=C7=D8=BA=B8=BD=CA=BD= =C3=BF=E4=2E =B1=E2=C0=FB =B0=B0=C0=BA =C0=CF=C0=CC =B9=FA=BE=EE=C1=FD=B4=CF=B4=D9=2E=20 One Click Mail =B5=A5=B8=F0=C6=C7=C0=B8=B7=CE =C1=F7= =C1=A2 =C8=AE=C0=CE =C7=D8=BA=B8=BD=C3=B1=E2 =B9=D9=B6=F8=B4=CF=B4=D9=2E =C1=F6=B1=DD=20 =BC=D2=B0=B3=C7=CF=B4=C2 OneClick Mail =C0=BA, =C8= =B9=B1=E2=C0=FB=C0=CE =B9=E6=B9=FD=C0=B8=B7=CE =B0=D4=BD=C3=C6=C7=20 =C1=D6=BC=D2=B8=A6 =C0=DA=B5=BF=C0=B8=B7=CE =B0=CB= =BB=F6=C7=CF=B0=ED, =B0=CB=BB=F6=B5=C8 =B0=D4=BD=C3=C6=C7=BF=A1=BC=AD= =B4=EB=B7=AE=C0=C7=20 E-Mail=C0=BB =C3=DF=C3=E2=C7=CF=BF=A9, =BC=F6=BD=C5= =B0=C5=BA=CE=C0=DA,=C1=DF=BA=B9=B8=DE=C0=CF=C0=BB =C0=DA=B5=BF=C0=B8=B7=CE= =BB=E8=C1=A6=C7=D5=B4=CF=B4=D9=2E=20 =C1=F6=B1=DD=B1=EE=C1=F6 =B3=AA=BF=CD=C0=D6=B4=C2&= nbsp;=BE=EE=B6=B2 =C0=CC=B8=DE=C0=CF =C3=DF=C3=E2=B1=E2 =C7=C1=B7=CE=B1=D7= =B7=A5 =BA=B8=B4=D9=B5=B5,=20 =B0=AD=B7=C2=C7=CF=B0=ED, =BD=B1=B4=D9=B0=ED, =C0=DA= =BD=C5=C0=D6=B0=D4 =B8=BB=BE=B8=B5=E5=B8=B1 =BC=F6 =C0=D6=BD=C0=B4=CF=B4=D9= =2E =B1=E2=C1=B8=C0=C7=20 =BC=F6=B5=BF =B0=D4=BD=C3=C6=C7 =C0=CC=B8=DE=C0=CF= =C3=DF=C3=E2=B1=E2=BF=CD =BA=F1=B1=B3=B8=A6 =B0=C5=BA=CE=C7=D5=B4=CF=B4=D9= =2E <a href=3D"http://www=2Ejounsoft=2Eco=2Ekr/ieasy_1= =2Ehtml" target=3D"_blank">>>=20 Oneclickmail =C0=CC=B5=BF</a></span></p> </td> </tr> <tr> <td width=3D"582"> <p> </p> </td> </tr> <tr> <td width=3D"601" colspan=3D"2"> <p><img src=3D"http://www=2Eokmat=2Ecom/image/mail2=2Ejpg" wid= th=3D"192" height=3D"52" border=3D"0"></p> </td> </tr> <tr> <td width=3D"19" rowspan=3D"2"> <p> </p> </td> <td width=3D"582"> <p><span style=3D"FONT-S= IZE: 10pt"=20 >=C8=FB=B5=E9=B0=D4 =B0=D4=BD=C3=C6=C7=C0=BB =C3=A3=BE=C6=B4=D9=B4=CF= =B8=E7,=20 =C1=D6=BC=D2=B8=A6 =BA=B9=BB=E7=C7=CF=B0=ED, =C6=E4= =C0=CC=C1=F6=B8=A6 =BC=B3=C1=A4=C7=CF=B0=ED=2E=2E=2E =B3=CA=B9=AB =C8=FB=B5= =E9=C1=D2? One=20 Click Mail=C0=BB =BB=E7=BF=EB=C7=D8=BA=B8=BD=CA=BD= =C3=BF=E4=2E =B1=E2=C0=FB =B0=B0=C0=BA =C0=CF=C0=CC =B9=FA=BE=EE=C1=FD=B4=CF=B4=D9=2E=20 One Click Mail =B5=A5=B8=F0=C6=C7=C0=B8=B7=CE =C1=F7= =C1=A2 =C8=AE=C0=CE =C7=D8=BA=B8=BD=C3=B1=E2 =B9=D9=B6=F8=B4=CF=B4=D9=2E =C1=F6=B1=DD=20 =BC=D2=B0=B3=C7=CF=B4=C2 OneClick Mail =C0=BA, =C8= =B9=B1=E2=C0=FB=C0=CE =B9=E6=B9=FD=C0=B8=B7=CE =B0=D4=BD=C3=C6=C7=20 =C1=D6=BC=D2=B8=A6 =C0=DA=B5=BF=C0=B8=B7=CE =B0=CB= =BB=F6=C7=CF=B0=ED, =B0=CB=BB=F6=B5=C8 =B0=D4=BD=C3=C6=C7=BF=A1=BC=AD= =B4=EB=B7=AE=C0=C7=20 E-Mail=C0=BB =C3=DF=C3=E2=C7=CF=BF=A9, =BC=F6=BD=C5= =B0=C5=BA=CE=C0=DA,=C1=DF=BA=B9=B8=DE=C0=CF=C0=BB =C0=DA=B5=BF=C0=B8=B7=CE= =BB=E8=C1=A6=C7=D5=B4=CF=B4=D9=2E=20 =C1=F6=B1=DD=B1=EE=C1=F6 =B3=AA=BF=CD=C0=D6=B4=C2&= nbsp;=BE=EE=B6=B2 =C0=CC=B8=DE=C0=CF =C3=DF=C3=E2=B1=E2 =C7=C1=B7=CE=B1=D7= =B7=A5 =BA=B8=B4=D9=B5=B5,=20 =B0=AD=B7=C2=C7=CF=B0=ED, =BD=B1=B4=D9=B0=ED, =C0=DA= =BD=C5=C0=D6=B0=D4 =B8=BB=BE=B8=B5=E5=B8=B1 =BC=F6 =C0=D6=BD=C0=B4=CF=B4=D9= =2E =B1=E2=C1=B8=C0=C7=20 =BC=F6=B5=BF =B0=D4=BD=C3=C6=C7 =C0=CC=B8=DE=C0=CF= =C3=DF=C3=E2=B1=E2=BF=CD =BA=F1=B1=B3=B8=A6 =B0=C5=BA=CE=C7=D5=B4=CF=B4=D9= =2E <a href=3D"http://www=2Ejounsoft=2Eco=2Ekr/ieasy_1-1=2Eh= tml" target=3D"_blank">>>=20 Speedmail =C0=CC=B5=BF</a></span></p> </td> </tr> <tr> <td width=3D"582"> <p> </p> </td> </tr> <tr> <td width=3D"601" colspan=3D"2"> <p><img src=3D"http://www=2Eokmat=2Ecom/image/mail3=2Ejpg" wid= th=3D"192" height=3D"52" border=3D"0"></p> </td> </tr> <tr> <td width=3D"19" rowspan=3D"2"> <p> </p> </td> <td width=3D"582"> <p><span style=3D"FONT-S= IZE: 10pt"=20 >=C8=FB=B5=E9=B0=D4 =B0=D4=BD=C3=C6=C7=C0=BB =C3=A3=BE=C6=B4=D9=B4=CF= =B8=E7,=20 =C1=D6=BC=D2=B8=A6 =BA=B9=BB=E7=C7=CF=B0=ED, =C6=E4= =C0=CC=C1=F6=B8=A6 =BC=B3=C1=A4=C7=CF=B0=ED=2E=2E=2E =B3=CA=B9=AB =C8=FB=B5= =E9=C1=D2? One=20 Click Mail=C0=BB =BB=E7=BF=EB=C7=D8=BA=B8=BD=CA=BD= =C3=BF=E4=2E =B1=E2=C0=FB =B0=B0=C0=BA =C0=CF=C0=CC =B9=FA=BE=EE=C1=FD=B4=CF=B4=D9=2E=20 One Click Mail =B5=A5=B8=F0=C6=C7=C0=B8=B7=CE =C1=F7= =C1=A2 =C8=AE=C0=CE =C7=D8=BA=B8=BD=C3=B1=E2 =B9=D9=B6=F8=B4=CF=B4=D9=2E =C1=F6=B1=DD=20 =BC=D2=B0=B3=C7=CF=B4=C2 OneClick Mail =C0=BA, =C8= =B9=B1=E2=C0=FB=C0=CE =B9=E6=B9=FD=C0=B8=B7=CE =B0=D4=BD=C3=C6=C7=20 =C1=D6=BC=D2=B8=A6 =C0=DA=B5=BF=C0=B8=B7=CE =B0=CB= =BB=F6=C7=CF=B0=ED, =B0=CB=BB=F6=B5=C8 =B0=D4=BD=C3=C6=C7=BF=A1=BC=AD= =B4=EB=B7=AE=C0=C7=20 E-Mail=C0=BB =C3=DF=C3=E2=C7=CF=BF=A9, =BC=F6=BD=C5= =B0=C5=BA=CE=C0=DA,=C1=DF=BA=B9=B8=DE=C0=CF=C0=BB =C0=DA=B5=BF=C0=B8=B7=CE= =BB=E8=C1=A6=C7=D5=B4=CF=B4=D9=2E=20 =C1=F6=B1=DD=B1=EE=C1=F6 =B3=AA=BF=CD=C0=D6=B4=C2&= nbsp;=BE=EE=B6=B2 =C0=CC=B8=DE=C0=CF =C3=DF=C3=E2=B1=E2 =C7=C1=B7=CE=B1=D7= =B7=A5 =BA=B8=B4=D9=B5=B5,=20 =B0=AD=B7=C2=C7=CF=B0=ED, =BD=B1=B4=D9=B0=ED, =C0=DA= =BD=C5=C0=D6=B0=D4 =B8=BB=BE=B8=B5=E5=B8=B1 =BC=F6 =C0=D6=BD=C0=B4=CF=B4=D9= =2E =B1=E2=C1=B8=C0=C7=20 =BC=F6=B5=BF =B0=D4=BD=C3=C6=C7 =C0=CC=B8=DE=C0=CF= =C3=DF=C3=E2=B1=E2=BF=CD =BA=F1=B1=B3=B8=A6 =B0=C5=BA=CE=C7=D5=B4=CF=B4=D9= =2E <a href=3D"http://www=2Ejounsoft=2Eco=2Ekr/ieasy_1-7=2Ehtml" target=3D"_blank">>>=20 Oneclickboard =C0=CC=B5=BF</a></span></p> </td> </tr> <tr> <td width=3D"582"> <p> </p> </td> </tr> <tr> <td width=3D"601" colspan=3D"2"> <p> </p> </td> </tr> <tr> <td width=3D"601" colspan=3D"2" bgcolor=3D"#dcdada"> <p> </p> </td> </tr> <tr> <td width=3D"601" colspan=3D"2"> <p><span style=3D"FONT-SIZE: 5pt"=20 ></span> </p> </td> </tr> <tr> <td width=3D"601" colspan=3D"2"> <p align=3D"center"><span style=3D"FONT-SIZE: 10pt"=20 ><a href=3D"http://www=2Ejounsoft=2Eco=2Ekr" target=3D"_blank">=C8=A8= =C6=E4=C0=CC=C1=F6=20 =C0=CC=B5=BF</a> <b>=B9=AE= =C0=C7=C0=FC=C8=AD : </span><span style=3D"FONT-SIZE: 10pt"=20 >032) 472-4743</B></span></p> </td> </tr> </table> <p> </p> </body> </html> |
From: Kevin B. <kb...@ca...> - 2002-03-21 15:38:43
|
Ale...@di... wrote: >Thanks, Kevin ! I knew it must be something simple, but I definitely >couldn't find it after a quick look of the python documentation. > >As a matter of fact, I looked at the documentation python.org and I didn't >find any mention of the things that you mention. Could you please give me a >hint, where stuff like that can be looked up ? (I guess, other than the >source) > The python tutorial talks about the trailing newline issue (http://www.python.org/doc/current/tut/node5.html last paragraph). Not sure about sys.stdout.write, you could find info about that in the sys module documentation, or in info about I/O processing... kb |
From: Samuele P. <pe...@in...> - 2002-03-21 11:31:56
|
This works: import org.python.core.*; import org.python.util.*; public class Test { public static void main(String[] argv) { try { PySystemState.initialize(); // PythonInterpreter interp = new PythonInterpreter(); // add new 'classes' module to sys.modules PyModule classes = imp.addModule("classes"); String defCode = "from java.lang import Object\n" + "class C(Object): pass"; // same as: exec defCode in classes.__dict__ Py.exec(new PyString(defCode),classes.__dict__,null); Class cl = (Class)classes.__findattr__("C").__tojava__(Class.class); System.out.println(cl); Object c = cl.newInstance(); System.out.println(c); } catch(Exception e) { e.printStackTrace(); } } } The point is that the Python class inheriting from Java should be defined in a module that is present in sys.modules or that can be imported (because Jython retrieves the Python class corresponding to a Java side proxy class by module/name), that means also 'import' the code with the definition would work, and other approaches using more or less Java-side vs Python-side code and for example the 'new' module. The 'main' module in which a PythonInterpreter executes code is not put in sys.modules, also because there would be a conflict with multiple intepreters. regards. |
From: Edward P. <epo...@te...> - 2002-03-21 02:36:25
|
Hello all. I am trying to create and use objects created in Jython from java. ... interp.exec("class PyJavaTestClass(JavaTestClass): pass"); interp.exec("ptc=PyJavaTestClass()"); ... JavaTestClass jtc = (JavaTestClass)interp.get("ptc",JavaTestClass.class); jtc.something(); // ok jtc = jtc.getClass().newInstance(); // error I get: Traceback (innermost last): (no code object) at line 0 ImportError: no module named main Is it possible at all to do this? I am trying to integrate python created object in a java plugin framework. In hava using forName() and newInstance() was easy. Not sure I can even do the above. I can think of an alternative way to do this, but that would mean reimplementing my java plugin stuff too. Any hints on how to fix the above? Thanks -Ed |
From: <Ale...@di...> - 2002-03-21 02:19:32
|
Thanks, Kevin ! I knew it must be something simple, but I definitely couldn't find it after a quick look of the python documentation. As a matter of fact, I looked at the documentation python.org and I didn't find any mention of the things that you mention. Could you please give me a hint, where stuff like that can be looked up ? (I guess, other than the source) Thanks, Alex Kotchnev Diversified Information Technologies Kevin Butler <kbutler@campuspip To: Ale...@di... eline.com> cc: jyt...@li... Subject: Re: [Jython-users] Printing without a newline 03/20/2002 09:06 PM Please respond to kbutler Ale...@di... wrote: >This is probably more of a python question, but I am really puzzled... > >How can I use "print" without getting the newline added after each item I >am printing.. I mean that I ended up doing it with System.out.print >("afadfa")... but it seems far from obvious to me.. I checked the >documentation for python, and I coldn't find it right off the bat.. > print "asdf", but that does add a space - if that isn't acceptable, sys.stdout.write(): >>> print "asdf",;print "zxcv" asdf zxcv >>> sys.stdout.write( "asdf" );print "zxcv" asdfzxcv kb |
From: O'Brien-Strain, E. <eo...@ex...> - 2002-03-21 02:13:05
|
Add a trailing comma to your print to print without a newline. For example: print "foo", __ Eamonn O'Brien-Strain HP Labs eo...@hp... > -----Original Message----- > From: Ale...@di... [mailto:Ale...@di...] > Sent: Wednesday, March 20, 2002 5:51 PM > To: jyt...@li... > Subject: [Jython-users] Printing without a newline > > > > This is probably more of a python question, but I am really puzzled... > > How can I use "print" without getting the newline added after > each item I > am printing.. I mean that I ended up doing it with System.out.print > ("afadfa")... but it seems far from obvious to me.. I checked the > documentation for python, and I coldn't find it right off the bat.. > > Seems like I am missing something pretty obvious.. any help ? > > > Thanks, > > Alex Kotchnev > Diversified Information Technologies > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: Kevin B. <kb...@ca...> - 2002-03-21 02:06:23
|
Ale...@di... wrote: >This is probably more of a python question, but I am really puzzled... > >How can I use "print" without getting the newline added after each item I >am printing.. I mean that I ended up doing it with System.out.print >("afadfa")... but it seems far from obvious to me.. I checked the >documentation for python, and I coldn't find it right off the bat.. > print "asdf", but that does add a space - if that isn't acceptable, sys.stdout.write(): >>> print "asdf",;print "zxcv" asdf zxcv >>> sys.stdout.write( "asdf" );print "zxcv" asdfzxcv kb |
From: <Ale...@di...> - 2002-03-21 01:51:37
|
This is probably more of a python question, but I am really puzzled... How can I use "print" without getting the newline added after each item I am printing.. I mean that I ended up doing it with System.out.print ("afadfa")... but it seems far from obvious to me.. I checked the documentation for python, and I coldn't find it right off the bat.. Seems like I am missing something pretty obvious.. any help ? Thanks, Alex Kotchnev Diversified Information Technologies |
From: Russo, T. <to...@st...> - 2002-03-21 00:09:25
|
Hi again, I've found the answer to the problem... it appears (at least w/ my setup) that entries in python.path are interpreted relative to sys.prefix/Lib, not sys.prefix. So I guess either the documentation is wrong or the implementation is wrong (does anyone know which it is?) _t > -----Original Message----- > From: Russo, Tom > Sent: Wednesday, March 20, 2002 7:00 PM > To: 'jyt...@li...' > Subject: relative paths in registry file? > > Hi, > > The documentation on the registry file says that relative > paths are allowed in the jython registry file and that they > are interpreted relative to sys.prefix, but I can't get them > to work. I'm using jython2.1 on windows2000. I set > python.verbose to debug to check the paths jython is > searching, but they're output as relative paths. If > interpreted relative to sys.prefix, the paths are correct. > Does anyone know what the problem might be? > > thanks > _t |
From: Russo, T. <to...@st...> - 2002-03-21 00:02:11
|
Hi, The documentation on the registry file says that relative paths are allowed in the jython registry file and that they are interpreted relative to sys.prefix, but I can't get them to work. I'm using jython2.1 on windows2000. I set python.verbose to debug to check the paths jython is searching, but they're output as relative paths. If interpreted relative to sys.prefix, the paths are correct. Does anyone know what the problem might be? thanks _t |
From: Edward P. <epo...@te...> - 2002-03-20 23:03:37
|
Hello, In some tight loops, PyFrame.setLine() takes up a lot of time. How does one disable the line numbers using jythonc args? I can see in the Py.java there is a compile(... boolean linenumbers) option. Thanks -Ed |
From: Joshua F. <jo...@jo...> - 2002-03-20 20:01:13
|
I'm looking for information on Jython in the context of large-scale distributed systems such as those developed with the J2EE. There is no doubt that Jython can access JMS and EJB, but are there any articles out there describing the particular benefits and challenges of using Jython as a "glue" scripting language in such applications, or of using Jython to give Python applications access to the high-end systems available in the J2EE? |
From: ThanksSky <Bl...@Al...> - 2002-03-20 19:55:40
|
<html> <head> <title>::: 하늘같은방송 스카이라이프 :::</title> <base href="http://www.best4trade.com/im/"> <meta name="generator" content="Namo WebEditor v4.0"> <script language="JavaScript"> <!-- function na_restore_img_src(name, nsdoc) { var img = eval((navigator.appName == 'Netscape') ? nsdoc+'.'+name : 'document.all.'+name); if (name == '') return; if (img && img.altsrc) { img.src = img.altsrc; img.altsrc = null; } } function na_change_img_src(name, nsdoc, rpath, preload) { var img = eval((navigator.appName == 'Netscape') ? nsdoc+'.'+name : 'document.all.'+name); if (name == '') return; if (img) { img.altsrc = img.src; img.src = rpath; } } // --> </script> </head> <body bgcolor="white" text="black" link="blue" vlink="purple" alink="red"><!-- :::: skylife service start :::: --> <TABLE cellSpacing=0 cellPadding=0 width=646 border=0 align="center"> <TBODY> <TR> <TD style="PADDING-RIGHT: 0px; PADDING-LEFT: 11px; PADDING-BOTTOM: 0px; PADDING-TOP: 10px" > <TABLE cellSpacing=0 cellPadding=0 width=642 border=0> <TBODY> <TR> <TD><a href="http://www.skylife.bz/skylife.htm" OnMouseOut="na_restore_img_src('기본형', 'document')" OnMouseOver="na_change_img_src('기본형', 'document', 'http://www.skylife.bz/im/inn7/s_mnu01on.gif', true);" target="_blank"><img src="http://www.skylife.bz/im/inn7/s_mnu01.gif" width="90" height="45" border="0" name="기본형"></a></TD> <TD><a href="http://www.skylife.bz/skylife01-2.htm" OnMouseOut="na_restore_img_src('경재형', 'document')" OnMouseOver="na_change_img_src('경재형', 'document', 'http://www.skylife.bz/im/inn7/s_mnu02on.gif', true);" target="_blank"><img src="http://www.skylife.bz/im/inn7/s_mnu02.gif" width="89" height="45" border="0" name="경재형"></a></TD> <TD><a href="http://www.skylife.bz/skylife01-3.htm" OnMouseOut="na_restore_img_src('보급형', 'document')" OnMouseOver="na_change_img_src('보급형', 'document', 'http://www.skylife.bz/im/inn7/s_mnu03on.gif', true);" target="_blank"><img src="http://www.skylife.bz/im/inn7/s_mnu03.gif" width="89" height="45" border="0" name="보급형"></a></TD> <TD><a href="http://www.skylife.bz/im/inn7_1.htm" OnMouseOut="na_restore_img_src('선택형', 'document')" OnMouseOver="na_change_img_src('선택형', 'document', 'http://www.skylife.bz/im/inn7/s_mnu04on.gif', true);" target="_blank"><img src="http://www.skylife.bz/im/inn7/s_mnu04.gif" width="89" height="45" border="0" name="선택형"></a></TD> <TD><a href="http://www.skylife.bz/skylife01-5.htm" OnMouseOut="na_restore_img_src('유료', 'document')" OnMouseOver="na_change_img_src('유료', 'document', 'http://www.skylife.bz/im/inn7/s_mnu05on.gif', true);" target="_blank"><img src="http://www.skylife.bz/im/inn7/s_mnu05.gif" width="88" height="45" border="0" name="유료"></a></TD> <TD><a href="http://www.skylife.bz/skylife01-4.htm" OnMouseOut="na_restore_img_src('오디오', 'document')" OnMouseOver="na_change_img_src('오디오', 'document', 'http://www.skylife.bz/im/inn7/s_mnu06on.gif', true);" target="_blank"><img src="http://www.skylife.bz/im/inn7/s_mnu06.gif" width="88" height="45" border="0" name="오디오"></a></TD> <TD><a href="http://www.skylife.bz/skylife05-2.htm" OnMouseOut="na_restore_img_src('할인', 'document')" OnMouseOver="na_change_img_src('할인', 'document', 'http://www.skylife.bz/im/inn7/s_mnu07on.gif', true);" target="_blank"><img src="http://www.skylife.bz/im/inn7/s_mnu07.gif" width="89" height="45" border="0" name="할인"></a></TD></TR></TBODY></TABLE></TD></TR> <TR> <TD style="PADDING-RIGHT: 0px; PADDING-LEFT: 13px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px" > <TABLE cellSpacing=0 cellPadding=0 width=642 border=0> <TBODY> <TR> <TD width=1 bgColor=#7b7b7b></TD> <TD width=642> <TABLE cellSpacing=0 cellPadding=0 width=642 border=0> <TBODY> <TR> <TD bgColor=#d9d9d9 height=2></TD></TR> <TR> <TD style="PADDING-RIGHT: 0px; PADDING-LEFT: 106px; PADDING-BOTTOM: 16px; PADDING-TOP: 16px" bgColor=#ededed><span style="FONT-SIZE: 9pt"><IMG height=14 alt="" src="http://www.skylife.bz/im/inn7/main_txt01.gif" width=463 border=0></span></TD></TR> <TR> <TD background="http://www.skylife.bz/im/inn7/main_dot02.gif"></TD></TR> <TR> <TD style="PADDING-RIGHT: 0px; PADDING-LEFT: 83px; PADDING-BOTTOM: 16px; PADDING-TOP: 18px" bgColor=#61be07><span style="FONT-SIZE: 9pt"><IMG height=38 alt="" src="http://www.skylife.bz/im/inn7/main_txt02.gif" width=352 border=0><a href="http://www.skylife.bz/on.htm" target="_blank"><IMG height=22 alt="" hspace=18 src="http://www.skylife.bz/im/inn7/btn_apply.gif" width=78 align=absMiddle border=0></a></span></TD></TR></TBODY></TABLE></TD> <TD width=1 bgColor=#7b7b7b></TD></TR></TBODY></TABLE> <TABLE cellSpacing=0 cellPadding=0 width=642 border=0> <TBODY> <TR> <TD width=1 bgColor=#7b7b7b></TD> <TD width=642> <TABLE cellSpacing=0 cellPadding=0 width=642 border=0> <TBODY> <TR> <TD style="PADDING-RIGHT: 0px; PADDING-LEFT: 57px; PADDING-BOTTOM: 5px; PADDING-TOP: 10px" vAlign=top width=425 bgColor=#005199 ><span style="FONT-SIZE: 9pt" ><IMG height=32 alt="" src="http://www.skylife.bz/im/inn7/main_txt03.gif" width=308 border=0></span></TD> <TD><span style="FONT-SIZE: 9pt" ><IMG height=47 alt="" src="http://www.skylife.bz/im/inn7/main_hbo04.gif" width=1 border=0></span></TD> <TD vAlign=top><A onfocus=blur()><span style="FONT-SIZE: 9pt" ><IMG height=47 alt="" src="http://www.skylife.bz/im/inn7/main_movie01.gif" width=187 border=0></span></A></TD></TR> <TR> <TD><span style="FONT-SIZE: 9pt" ><IMG height=248 alt="" src="http://www.skylife.bz/im/inn7/main_pack.gif" width=425 border=0></span></TD> <TD background="http://www.skylife.bz/im/inn7/main_dot01.gif"></TD> <TD vAlign=top> <TABLE cellSpacing=0 cellPadding=0 bgColor=#e6e6e6 border=0 height="100%"> <TBODY> <TR> <TD><span style="FONT-SIZE: 9pt" ><IMG height=1 alt="" src="http://www.skylife.bz/im/inn7/main_hbo03.gif" width=187 border=0></span></TD></TR> <TR> <TD style="PADDING-RIGHT: 0px; PADDING-LEFT: 4px; PADDING-BOTTOM: 0px; PADDING-TOP: 3px" ><span style="FONT-SIZE: 9pt" ><IMG height=22 alt="" src="http://www.skylife.bz/im/inn7/hb0_more01.gif" width=179 border=0></span></TD></TR> <TR> <TD><span style="FONT-SIZE: 9pt" ><IMG height=55 alt="" src="http://www.skylife.bz/im/inn7/main_hbo01.gif" width=185 border=0></span></TD></TR> <TR> <TD><span style="FONT-SIZE: 9pt" ><IMG height=35 alt="" src="http://www.skylife.bz/im/inn7/main_hbo02_1.gif" width=187 border=0><br><img src="http://www.skylife.bz/im/inn7/main_hbo02.gif" width="187" height="65" border="0"><br></span></TD></TR> <TR> <TD height="66"> <p align="center"><img src="http://www.skylife.bz/im/inn7/main_hbo02_2.gif" width="187" height="34" border="0"><br><span style="FONT-SIZE: 10pt" ><font color="#4d80a3"> 월 5,000원</font></span></p></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD> <TD width=1 bgColor=#ffffff></TD> <TD width=1 bgColor=#7b7b7b></TD></TR> <TR> <TD width=1 bgColor=#7b7b7b colSpan=4></TD></TR> <TR> <TD width=1 bgColor=#7b7b7b height=25></TD> <TD vAlign=center align=right bgColor=#eeeeee colSpan=2><span style="FONT-SIZE: 9pt" >※ 요금은 부가세 별도입니다. </span></TD> <td></td> </TR> </TBODY></TABLE></TD></TR> <TR> <td></td></TR> </TBODY></TABLE></TBODY><p align="center"><a href="http://www.skylife.bz/on.htm" target="_blank"><img src="http://www.skylife.bz/im/inn7/buttonRight.gif" width="119" height="33" border="0"></a></p> <table align="center" border="1" cellspacing="0" width="642" bordercolor="#515151" bordercolordark="white" bordercolorlight="#515151"> <tr> <td width="642" bgcolor="#eeeeee"> <p align="center"><span style="FONT-SIZE: 10pt" ><font color="#666666"><br><정보통신망이용촉진 및 정보보호에 관한 법률에 의거 표시><br> </font></span><FONT color=#666666><span style="FONT-SIZE: 10pt" ><br>죄송합니다 본 메일은 발신전용으로 회신되지 않습니다. 원하시지 않으시면 </span></FONT><FONT color="red"><SPAN style="FONT-SIZE: 10pt"> <A href="mailto:be...@08...?subject=수신거부 skinn &body=jyt...@li... 주소로 더 이상 메일을 보내지 마세요">수신거부</A></SPAN></FONT><FONT color=#666666><span style="FONT-SIZE: 10pt" >를 눌러주시길 바랍니다.<BR></span><SPAN style="FONT-SIZE: 10pt">Copyright (C) 2001 SkyLife.bz, All Rights Reserved. </SPAN><SPAN style="FONT-SIZE: 10pt" > 문의 [080-789-4567]</SPAN></FONT></p> </td> </tr> </table> </body> </html> |
From: Victor Ng <vic...@re...> - 2002-03-20 18:54:02
|
Oops.. My stupid. It _is_ just a warning and the class can run. Vic -----Original Message----- From: Boris Gruschke [mailto:bo...@gr...] Sent: Wednesday, March 20, 2002 1:05 PM To: Victor Ng; jyt...@li... Subject: Re: [Jython-users] jythonc broken for Java 1.4? Victor, I'm using the Sun JDK 1.4.0 on Linux. I'm getting the same warning about "assert", but because they are just warnings it still works. I.e. I can compile jython.jar (which produces those warnings) and I can use jythonc (which also produces those warnings) but still generates classfiles in ./jpywork as expected. The JavaVM can run them. Are you sure, that this is the cause of your problem? Your messages look like warnings, too. Kind regards, Boris |
From: Syver E. <syv...@on...> - 2002-03-20 18:39:39
|
da...@cr... writes: > Has anyone come across JaWin? Its a wrapper for COM components that > might make it fairly easy to do a win32com for jython. I've made a minimal COM support module for Jython that uses either jacob or jawin as the actual layer that the COM calls are made through. The module does not use generated interfaces like win32com does/can do, but instead generates a python friendly interface on the fly via __getattr__ __setattr__ and friends. I think I've posted about it here before, if anyone are interested I will put them up on the web so they can be downloaded. -- Vennlig hilsen Syver Enstad |
From: Boris G. <bo...@gr...> - 2002-03-20 18:04:58
|
Victor, I'm using the Sun JDK 1.4.0 on Linux. I'm getting the same warning about "assert", but because they are just warnings it still works. I.e. I can compile jython.jar (which produces those warnings) and I can use jythonc (which also produces those warnings) but still generates classfiles in ./jpywork as expected. The JavaVM can run them. Are you sure, that this is the cause of your problem? Your messages look like warnings, too. Kind regards, Boris |
From: Victor Ng <vic...@re...> - 2002-03-20 17:33:27
|
I'm using Java 1.4 under WindowsXP (using Java 1.3.1 is not an option) and I can't seem to compile a hello world program. I'm getting this error: c:\opt\redknee\external\jython-2.1\org\python\core\Py.java:989: warning: as of release 1.4, assert is a keyword, and may not be used as an identifier public static void assert(PyObject test, PyObject message) { ^ c:\opt\redknee\external\jython-2.1\org\python\core\Py.java:995: warning: as of release 1.4, assert is a keyword, and may not be used as an identifier public static void assert(PyObject test) { ^ c:\opt\redknee\external\jython-2.1\org\python\core\Py.java:996: warning: as of release 1.4, assert is a keyword, and may not be used as an identifier assert(test, Py.None); ^ Note: Some input files use or override a deprecated API. Note: Recompile with -deprecation for details. 3 warnings Now - I obviously know what the problem is, but is anyone working on this? |
From: Brian Z. <bri...@ya...> - 2002-03-19 22:51:21
|
Brad, Honored to have you here. Apparently you hit a known bug: http://sourceforge.net/tracker/index.php?func=detail&aid=222805&group_id=128 67&atid=112867 In Robert W. Bill's book, page 5 about Line Separators and Block Indentation Syntax: """ A Current Interactive Limitation One disclaimer concerning the interactive interpreter: The current implementation of Jython produces an error when employing backslashes, open enclosures, and triple-quotes in interactive mode despite it being legal syntax. This syntax does work in Jython files as well as in the interactive interpreter for CPython (Jython's counterpart implemented in C). It could be working in interactive mode as well by the time you read this, but if not, those examples with extended logical lines should be placed in a file and run as an argument to the Jython interpreter (such as jython example.py). """ Wonder how hard it is to fix? Any idea from the developers? -Brian ----- Original Message ----- From: "Brad Cox" <bc...@vi...> To: <jyt...@li...> Sent: Tuesday, March 19, 2002 8:16 AM Subject: [Jython-users] Newbie problems > I've just begun experimenting with jpython (just today). Hope to use > it to replace velocity as the teacher-programmable component of the > interactive learning environment at http://virtualschool.edu/jile. > > My first problem is that tutorial chapter on strings isn't working > right (on Linux 7.0 Redhat) > >>> "Hello world" > "Hello world" > > >>> "Hello\ > Syntax error: LexicalScanner Encountered <EOF> after \ > > This one is critical and preventing me from exploring deeper. > > Second problem is that command history isn't working. readline is > definitely installed but isn't being recognized by the installer. > > Can someone please help? Sorry if these are faqs; I've not made it > through all the docs yet. > -- > Brad Cox, PhD; bc...@vi... 703 361 4751 > o For industrial age goods there were checks and credit cards. > For everything else there is http://virtualschool.edu/mybank > o Java Interactive Learning Environment http://virtualschool.edu/jile > o Java Web Application Architecture: http://virtualschool.edu/jwaa > > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: Brad C. <bc...@vi...> - 2002-03-19 20:28:15
|
At 8:32 PM +0100 3/19/02, Ype Kingma wrote: >I'm beginning to suspect that the java stdio implementation on >macosx is the culprit. You shouldn't be getting EOF. > >Can you use triple quotes on a single line? ("""Hello world""") >If you can't there is a bug in your jython implementation. > >Can you run a .py file with some triple quotes in it? Ie. I get exactly the same behavior on both MacOSX and and Redhat 7.0 Linux (via ssh from MacOSX terminal) . Both are running the same jython-1.2.class image, downloaded this AM from the jython website. On Linux (Redhat 7.0) with IBM JDK [bcox@linux:~]$ jython hello.py Hello world Hello world Helloworld [bcox@linux:~]$ cat hello.py print """Hello world"""; print """Hello world""" print "Hello\ world" [bcox@linux:~]$ jython Jython 2.1 on java1.3.0 (JIT: jitc) Type "copyright", "credits" or "license" for more information. >>> print """Hello world"""; Hello world >>> print """Hello Traceback (innermost last): (no code object) at line 0 File "<console>", line 2 SyntaxError: Lexical error at line 2, column 0. Encountered: <EOF> after : "" >>> print "Hello\ Traceback (innermost last): (no code object) at line 0 File "<console>", line 2 SyntaxError: Lexical error at line 2, column 0. Encountered: <EOF> after : "" >>> On MacOSX 10.1.1 (I think; the latest release) [bcox@g3mac:/b2/Applications/jython-2.1]$ !jy jython Jython 2.1 on java1.3.1 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> print """Hello world""" Hello world >>> print """Hello Traceback (innermost last): (no code object) at line 0 File "<console>", line 2 SyntaxError: Lexical error at line 2, column 0. Encountered: <EOF> after : "" >>> print "Hello\ Traceback (innermost last): (no code object) at line 0 File "<console>", line 2 SyntaxError: Lexical error at line 2, column 0. Encountered: <EOF> after : "" >>> [bcox@g3mac:~]$ jython hello.py Hello world Hello world Helloworld [bcox@g3mac:~]$ -- Brad Cox, PhD; bc...@vi... 703 361 4751 o For industrial age goods there were checks and credit cards. For everything else there is http://virtualschool.edu/mybank o Java Interactive Learning Environment http://virtualschool.edu/jile o Java Web Application Architecture: http://virtualschool.edu/jwaa |
From: Kevin B. <kb...@ca...> - 2002-03-19 19:14:23
|
Brad Cox wrote: > Thanks. But """ doesn't work either.... This appears to be a bug in the parser in Jython's interactive interpreter: Jython 2.1 on java1.3.1_02 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> """hello Traceback (innermost last): (no code object) at line 0 File "<console>", line 2 SyntaxError: Lexical error at line 2, column 0. Encountered: <EOF> after : "" >>> print """hello Traceback (innermost last): (no code object) at line 0 File "<console>", line 2 SyntaxError: Lexical error at line 2, column 0. Encountered: <EOF> after : "" >>> def go(): ... print """Hello Traceback (innermost last): (no code object) at line 0 File "<console>", line 3 SyntaxError: Lexical error at line 3, column 0. Encountered: <EOF> after : "" >>> ^Z In contrast, with CPython: PYTHON:/e/work/cp$ python Python 2.2 (#28, Dec 21 2001, 12:21:22) [MSC 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> """Hello ... world""" 'Hello\nworld' >>> ^Z If you create & execute a file, they both work identically: PYTHON:d:/temp$ cat >> hello.py print """Hello world""" PYTHON:d:/temp$ jython hello.py Hello world PYTHON:d:/temp$ python hello.py Hello world PYTHON:d:/temp$ kb |
From: Brad C. <bc...@vi...> - 2002-03-19 18:53:43
|
Thanks. But """ doesn't work either.... At 7:28 PM +0100 3/19/02, Ype Kingma wrote: > >I've just begun experimenting with jpython (just today). Hope to >use it to replace velocity as the teacher-programmable component of >the interactive learning environment at >http://virtualschool.edu/jile. >> >>My first problem is that tutorial chapter on strings isn't working >>right (on Linux 7.0 Redhat) >>>>> "Hello world" >>"Hello world" >> >>>>> "Hello\ >>Syntax error: LexicalScanner Encountered <EOF> after \ >> >>This one is critical and preventing me from exploring deeper. > >Use triple quotes around your string when you need it to contain >newlines: > >"""Hello >world. >""" >>> """Hello Traceback (innermost last): (no code object) at line 0 File "<console>", line 2 SyntaxError: Lexical error at line 2, column 0. Encountered: <EOF> after : "" >>> Any other suggestions? > > >>Second problem is that command history isn't working. readline is >>definitely installed but isn't being recognized by the installer. > >Have a look at the registry file in the jython directory (where >jython.jar is), and look for the readline option. >It needs a java class that accesses the native readline lib >that you may have to download iirc. Apparently readline isn't installed on mac osx (haven't tried this on linux yet). Will track it down and try again. Jython 2.1 on java1.3.1 (JIT: null) Exception in thread "main" java.lang.NoClassDefFoundError: org/gnu/readline/ReadlineLibrary at org.python.util.ReadlineConsole.<init>(ReadlineConsole.java) at org.python.util.ReadlineConsole.<init>(ReadlineConsole.java) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.python.util.jython.main(jython.java) >There is also a simple Console.py in the demo dir that has >an up arrow which is good enough for me. > >Regards, >Ype > >-- > >_______________________________________________ >Jython-users mailing list >Jyt...@li... >https://lists.sourceforge.net/lists/listinfo/jython-users -- Brad Cox, PhD; bc...@vi... 703 361 4751 o For industrial age goods there were checks and credit cards. For everything else there is http://virtualschool.edu/mybank o Java Interactive Learning Environment http://virtualschool.edu/jile o Java Web Application Architecture: http://virtualschool.edu/jwaa |
From: <Ken...@ub...> - 2002-03-19 18:21:36
|
jpython --> jython What readline support are you using? jython won't use readline support (as in python command shell), without the JNI wrapper (haven't got this working myself either). The java command interpreter (i think partly due to missing readline support) doesn't allow nearly as much stuff, like line continuances etc as the cpython version. script's do work though (iirc) -----Original Message----- From: bcox Sent: 19 March 2002 16:17 To: jython-users Cc: bcox Subject: [Jython-users] Newbie problems I've just begun experimenting with jpython (just today). Hope to use it to replace velocity as the teacher-programmable component of the interactive learning environment at http://virtualschool.edu/jile. My first problem is that tutorial chapter on strings isn't working right (on Linux 7.0 Redhat) >>> "Hello world" "Hello world" >>> "Hello\ Syntax error: LexicalScanner Encountered <EOF> after \ This one is critical and preventing me from exploring deeper. Second problem is that command history isn't working. readline is definitely installed but isn't being recognized by the installer. Can someone please help? Sorry if these are faqs; I've not made it through all the docs yet. -- Brad Cox, PhD; bc...@vi... 703 361 4751 o For industrial age goods there were checks and credit cards. For everything else there is http://virtualschool.edu/mybank o Java Interactive Learning Environment http://virtualschool.edu/jile o Java Web Application Architecture: http://virtualschool.edu/jwaa _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users Visit our website at http://www.ubswarburg.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. |
From: Ype K. <yk...@xs...> - 2002-03-19 18:16:51
|
Brad, >I've just begun experimenting with jpython (just today). Hope to use it to replace velocity as the teacher-programmable component of the interactive learning environment at http://virtualschool.edu/jile. > >My first problem is that tutorial chapter on strings isn't working right (on Linux 7.0 Redhat) >>>> "Hello world" >"Hello world" > >>>> "Hello\ >Syntax error: LexicalScanner Encountered <EOF> after \ > >This one is critical and preventing me from exploring deeper. Use triple quotes around your string when you need it to contain newlines: """Hello world. """ > >Second problem is that command history isn't working. readline is definitely installed but isn't being recognized by the installer. Have a look at the registry file in the jython directory (where jython.jar is), and look for the readline option. It needs a java class that accesses the native readline lib that you may have to download iirc. There is also a simple Console.py in the demo dir that has an up arrow which is good enough for me. Regards, Ype -- |
From: Ype K. <yk...@xs...> - 2002-03-19 17:53:40
|
Stephen, >I'm porting some Java code to Jython. How woould I write a synchronised >block? > >synchronized(some_object){ > //code >} Have a look at http://mail.python.org/pipermail/jpython-interest/2000-August/003718.html It contains an example on how to synchronize a method on the object it is invoked on. You can also use a Lock from the thread module and explicity acquire and release it. This could be a bit slower, but it's more straightforward when your code is not a complete method. If you need the performance of the java synchronized construct, you can also leave the code in java. >Thanks My pleasure, Ype -- |