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: james p <jam...@ya...> - 2002-02-18 19:16:37
|
We have a bunch of Python (cgi) scripts producing html behind an Apache web server. We also have a set of Java libraries that I want to access from these Python scripts, but I haven't been able to figure out how to do this. I have downloaded and tried out Jython, but it takes 5-6 seconds just to run a one-line 'print "hi"' script, and this is, of course, not acceptable for a web server. Any ideas? __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com |
From: rbill <rb...@di...> - 2002-02-18 18:42:30
|
On Sun, 17 Feb 2002, Wayne Pierce wrote: > I haven't worked with Jython in a while, so I thought I'd build a simple > Applet to refresh my memory. I copied the code from the web site below: > > from java.applet import Applet > > class HelloWorld(Applet): > def paint(self, g): > g.drawString("Hello from Jython!", 20, 30) > > I then used jythonc to create a .jar file and have the following in my HTML: > > <applet code='HelloWorld' archive='hello.jar' width=200 height=200> > <applet> > > But when I load the HTML page all I see is a grey box. I've tried > several different versions of the above line, mostly in the code attribute. > > jythonc didn't give any errors except for the "using depreciated...". > I'm testing this with Sun's JDK 1.4 . Does the browser you are using have plugin support for JDK 1.4? Without plugins, use jdk 1.1.8 to compile applets. If this is no help, forward the options given to jythonc and the java console output. |
From: Wayne P. <wa...@mi...> - 2002-02-18 07:08:39
|
I haven't worked with Jython in a while, so I thought I'd build a simple Applet to refresh my memory. I copied the code from the web site below: from java.applet import Applet class HelloWorld(Applet): def paint(self, g): g.drawString("Hello from Jython!", 20, 30) I then used jythonc to create a .jar file and have the following in my HTML: <applet code='HelloWorld' archive='hello.jar' width=200 height=200> <applet> But when I load the HTML page all I see is a grey box. I've tried several different versions of the above line, mostly in the code attribute. jythonc didn't give any errors except for the "using depreciated...". I'm testing this with Sun's JDK 1.4 . Does anyone know what I'm overlooking? Thanks, Wayne |
From: Adam K. <ak...@ma...> - 2002-02-17 22:59:39
|
I struggled with the same issue this week. The stuff in the FAQ documentation didn't work the first time I did it. Anyway, I played = with a bit to get it to work. My Lib directory (where the modules are) are in ./Lib in this example. If this doesn't work, you can always = uncommment out the last 2 lines, which is another way of doing the same thing. PythonInterpreter interpreter =3D new PythonInterpreter(); String libDir=3D"."+File.separator+"Lib"; Properties props =3D new Properties(); props.setProperty("sys.path", libDir); PythonInterpreter.initialize(System.getProperties(), props,=20 new String[] {""}); // interpreter.exec("import sys"); // interpreter.exec("sys.path.append('.\\Lib')"); -----Original Message----- From: jyt...@li... [mailto:jyt...@li...] Sent: Sunday, February 17, 2002 3:11 PM To: jyt...@li... Subject: Jython-users digest, Vol 1 #405 - 5 msgs Send Jython-users mailing list submissions to jyt...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/jython-users or, via email, send a message with subject or body 'help' to jyt...@li... You can reach the person managing the list at jyt...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Jython-users digest..." Today's Topics: 1. import error (Branko Strok) 2. =C7=F6=C0=E7 =C0=AF=B7=E1=B0=D4=BD=C3=C6=C7=C0=BB = =B0=F8=B0=B3=C7=CF=B0=ED =C0=D6=BD=C0=B4=CF=B4=D9. =B5=B7=B5=C7=B4=C2 = =C1=F5=B1=C7=C1=A4=BA=B8=B0=A1 =B0=A1=B5=E6=C7=D5=B4=CF=B4=D9 (=B9=DA=BD=C2=C8=C6) 3. Re: import error (Ype Kingma) 4. RE:Import Error (Branko Strok) 5. RE:Import Error (Ype Kingma) --__--__-- Message: 1 From: "Branko Strok" <drb...@ho...> To: jyt...@li... Date: Sun, 17 Feb 2002 05:19:06 +0100 Subject: [Jython-users] import error > >Hello, > I just recently discovered jython and it seems like dream come true! But I got stuck at the very beginning! Could anyone please help me with this, I can send send code examples if necessary: > Q1: I have a python application that I got from the web (I don't=20 understandmuch of the python code). It is comprised of many .py files = which=20 all reside in one directory. If I call the main .py script by invoking=20 standard python windows interpreter in the same command prompt line=20 everything works fine. But...when I want to call main script from my java code like: interp.execfile(myscript.py)I get all import error messages: cannot = import=20 module, name etc. Is the solution related to the python.home parameter? How do I fix = this? > Q2: I have to send parameters to the main python script on invocation. = Can I do that from interp.execfile(myscript.py -param a)? Is there any other = way=20 to do this? > Thanks in advance. Jython is like gift from Gods solution for my problems...well only if I make it work. > >Branko _________________________________________________________________ Get your FREE download of MSN Explorer at = http://explorer.msn.com/intl.asp. --__--__-- Message: 2 Reply-To: us...@ko... From: =B9=DA=BD=C2=C8=C6 <kei...@ya...> To: <jyt...@li...> Date: Sun, 17 Feb 2002 17:45:46 +0900 Subject: [Jython-users] =C7=F6=C0=E7 = =C0=AF=B7=E1=B0=D4=BD=C3=C6=C7=C0=BB =B0=F8=B0=B3=C7=CF=B0=ED = =C0=D6=BD=C0=B4=CF=B4=D9. =B5=B7=B5=C7=B4=C2 =C1=F5=B1=C7=C1=A4=BA=B8=B0=A1 =B0=A1=B5=E6=C7=D5=B4=CF=B4=D9 <HTML> <HEAD> <META content=3D"text/html; charset=3Dks_c_5601-1987" = http-equiv=3DContent-Type> <STYLE> p, font, span { line-height:120%; margin-top:0; = margin-bottom:0; }</STYLE> </HEAD><BODY> <TABLE borderColor=3D#999999 cellSpacing=3D0 borderColorDark=3Dwhite = width=3D650=20 align=3Dcenter borderColorLight=3D#999999 border=3D1> =20 <TR> <TD width=3D644> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2><IMG = height=3D79 alt=3D11.bmp=20 src=3D"http://www.94stock.com/top.gif" width=3D648=20 border=3D0></FONT></SPAN></P></TD></TR> <TR> <TD width=3D644> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: = 120%"=20 align=3Dcenter><SPAN style=3D"FONT-SIZE: 9pt"><FONT = face=3D=B5=B8=BF=F2> <IMG=20 height=3D68 src=3D"http://www.94stock.com/mid.gif" width=3D421=20 border=3D0></FONT></SPAN></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: = 120%"=20 align=3Dcenter> </P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: = 120%"=20 align=3Dcenter><SPAN style=3D"FONT-SIZE: 9pt"><A href=3D"http://www.94stock.com"=20 target=3D_blank><FONT face=3D=B5=B8=BF=F2 color=3D#666666><IMG = height=3D53=20 src=3D"http://www.94stock.com/join.gif" width=3D189=20 border=3D0></FONT></A></SPAN></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: = 120%"=20 align=3Dcenter> </P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: = 120%"=20 align=3Dleft><IMG height=3D30 = src=3D"http://www.94stock.com/open.gif" width=3D305=20 border=3D0></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: = 120%"=20 align=3Dleft> </P> <P=20 style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"> <FONT=20 face=3D=B5=B8=BF=F2 color=3D#666666><SPAN style=3D"FONT-SIZE: = 9pt">=C7=F6=C0=E7 =C0=AF=B7=E1=B0=D4=BD=C3=C6=C7=C0=BB =C0=E1=BD=C3=B5=BF=BE=C8 =BF=C0=C7=C2=C7=CF=B0=ED=20 =C0=D6=BD=C0=B4=CF=B4=D9. =B5=B7=C0=CC=B5=C7=B4=C2 = =C1=B7=C1=FD=B0=D4 =C1=BE=B8=F1=C3=DF=C3=B5 = =B0=D4=BD=C3=C6=C7=C0=B8=B7=CE =B0=A1=BC=C5=BC=AD </SPAN></FONT></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT=20 face=3D=B5=B8=BF=F2 color=3D#666666><SPAN style=3D"FONT-SIZE: = 9pt"> 94=BD=BA=C5=B9 =C1=BE=B8=F1=C3=DF=C3=B5=BF=A1 =B4=EB=C7=D1=20 =B3=EB=C7=CF=BF=EC=B8=A6 =C1=F7=C1=A2 =C8=AE=C0=CE=C7=D8 = =BA=B8=BD=C3=B1=E2 =B9=D9=B6=F8=B4=CF=B4=D9. =B1=CD=C7=CF=B2=B2 =C5=AB = =B5=B5=BF=F2=C0=CC =B5=C7=B8=AE=B6=F3 =C0=DA=BA=CE=C7=D5=B4=CF=B4=D9.</SPAN></FONT></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT=20 face=3D=B5=B8=BF=F2 color=3D#666666><SPAN=20 style=3D"FONT-SIZE: 9pt"></SPAN></FONT> </P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT=20 face=3D=B5=B8=BF=F2 color=3D#666666><SPAN style=3D"FONT-SIZE: 9pt"> </SPAN><SPAN=20 style=3D"FONT-SIZE: 12pt"><B>=BE=C6=C0=CC=B5=F0</B></SPAN><SPAN = style=3D"FONT-SIZE: 9pt"> :=20 </SPAN></FONT>b8848<FONT face=3D=B5=B8=BF=F2 = color=3D#666666><SPAN=20 style=3D"FONT-SIZE: 9pt"> </SPAN><SPAN=20 style=3D"FONT-SIZE: = 12pt"><B>=BA=F1=B9=D0=B9=F8=C8=A3</B></SPAN><SPAN style=3D"FONT-SIZE: 9pt"> :=20 </SPAN></FONT>b8887</P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT=20 face=3D=B5=B8=BF=F2><SPAN style=3D"FONT-SIZE: = 9pt"></SPAN></FONT> </P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2><IMG = height=3D30 alt=3D33.bmp=20 src=3D"http://www.94stock.com/market.gif" width=3D305=20 border=3D0></FONT></SPAN></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT = face=3D=B5=B8=BF=F2></FONT></SPAN> </P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT=20 face=3D=B5=B8=BF=F2 color=3D#666666><SPAN style=3D"FONT-SIZE: = 9pt"> =C0=CC=C1=A6 =B0=E6=B1=E2=B0=A1 =B9=D9=B4=DA=C0=BB =C4=A1=B0=ED =BC=AD=BC=AD=C8=F7=20 =C1=A4=BB=F3=C0=BB =C7=E2=C7=D8 =B1=E2=C1=F6=B0=B3=B8=A6 = =C5=B0=B0=ED =C0=D6=BD=C0=B4=CF=B4=D9. = =C1=F5=B1=C7=B0=E8=BF=A1=BC=AD=B4=C2 = =B4=EB=B9=DA=C0=E5=C0=B8=B7=CE=C0=C7 =C1=F8=C0=D4=C0=CC</SPAN></FONT></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT=20 face=3D=B5=B8=BF=F2 color=3D#666666><SPAN style=3D"FONT-SIZE: = 9pt"> =BE=F3=B8=B6=B3=B2=C1=F6 =BE=CA=C0=BA=20 =BD=C3=B1=E2=C0=D4=B4=CF=B4=D9.</SPAN></FONT></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT=20 face=3D=B5=B8=BF=F2 color=3D#666666><SPAN style=3D"FONT-SIZE: 9pt"> =C1=D6=BD=C4=BD=C3=C0=E5=BF=A1=BC=AD =C7=F6=C0=E7=C0=C7 = =C0=E5=BC=BC=B4=C2 =BE=C6=C1=D6=20 =C1=DF=BF=E4=C7=D5=B4=CF=B4=D9. =BE=D5=C0=B8=B7=CE = =B4=D9=B0=A1=BF=C3 =B4=EB=B9=DA=C0=E5=BF=A1=BC=AD =B4=A9=B0=A1 = =B8=D5=C0=FA =C8=B2=B1=DD=C1=D6=B8=A6 =BC=B1=C1=A1=C7=CF=B4=C0=B3=C4 =C7=CF=B4=C2 </SPAN></FONT></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT=20 face=3D=B5=B8=BF=F2 color=3D#666666><SPAN style=3D"FONT-SIZE: = 9pt"> =B1=E6=B8=F1=C0=CC=B6=F3=B0=ED =C7=D2 =BC=F6 =C0=D6=B1=E2=20 =B6=A7=B9=AE=C0=D4=B4=CF=B4=D9. </SPAN></FONT></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT=20 face=3D=B5=B8=BF=F2 color=3D#666666><SPAN style=3D"FONT-SIZE: = 9pt"> =B1=D7=B7=B1 =C0=C7=B9=CC=BF=A1=BC=AD =C1=F6=B1=DD=C0=CC =C1=D6=BD=C4=20 =C5=F5=C0=DA=B8=A6 =C7=CF=B1=E2=BF=A1 =C0=FB=B1=E2=B6=F3=B0=ED = =C7=D2 =BC=F6 =C0=D6=BD=C0=B4=CF=B4=D9.</SPAN></FONT></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT=20 face=3D=B5=B8=BF=F2 color=3D#666666><SPAN style=3D"FONT-SIZE: = 9pt"> =C7=CF=B7=E7=B6=F3=B5=B5 =BB=A1=B8=AE =C5=F5=C0=DA=B1=E2=C1=D8=C0=BB=20 =B8=B6=B7=C3=C7=CF=BF=A9 =B4=EB=BA=F1=B8=A6 = =C7=D8=BE=DF=C7=D5=B4=CF=B4=D9. =C0=CC=BF=A1 =C0=FA=C8=F1 = 94=BD=BA=C5=B9=BF=A1=BC=AD=B4=C2 =BF=A9=B7=AF=BA=D0=B5=E9=C0=BB = =C0=A7=C7=D8 =C8=AE=BD=C7=C7=D1 </SPAN></FONT></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT=20 face=3D=B5=B8=BF=F2 color=3D#666666><SPAN style=3D"FONT-SIZE: = 9pt"> =B3=EB=C7=CF=BF=EC=B8=A6 =C1=D8=BA=F1 =C7=D8=B5=CE=B0=ED=20 =C0=D6=BD=C0=B4=CF=B4=D9.</SPAN></FONT></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT=20 face=3D=B5=B8=BF=F2 color=3D#666666><SPAN style=3D"FONT-SIZE: = 9pt"> =B4=D9=B8=A5 =BB=E7=C0=CC=C6=AE=BF=CD=B4=C2 =C2=F7=BA=B0=C8=AD=B5=C7=B4=C2=20 =C7=C7=BA=CE=BF=A1 =BF=CD=B4=EA=B4=C2 = =C5=F5=C0=DA=B3=EB=C7=CF=BF=EC=C0=D4=B4=CF=B4=D9.</SPAN></FONT></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2=20 color=3D#666666></FONT></SPAN> </P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2 = color=3D#666666><IMG height=3D30=20 alt=3D33.bmp src=3D"http://www.94stock.com/94.gif" width=3D305=20 border=3D0></FONT></SPAN></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2=20 color=3D#666666></FONT></SPAN> </P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2 = color=3D#666666> =C0=FA=C8=F1 94=BD=BA=C5=B9=C0=BA =C1=D6=BD=C4=C5=F5=C0=DA=B0=A1=B5=E9=C0=BB=20 =C0=A7=C7=D8 =B0=A2=C1=BE =C1=A4=BA=B8=B8=A6 = =C1=A6=B0=F8=C7=CF=B4=C2 =C8=B8=BF=F8=C1=A6 = =C1=F5=B1=C7=C4=C1=BC=B3=C6=C3 =BB=E7=C0=CC=C6=AE=C0=D4=B4=CF=B4=D9.</FONT></SPAN></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2 = color=3D#666666> =B4=EB=C7=FC =C1=F5=B1=C7=C6=F7=C5=BB =BB=E7=C0=CC=C6=AE=B8=A6 = =C7=A5=B9=E6=C7=CF=C1=F6=20 =BE=CA=BD=C0=B4=CF=B4=D9. =BC=D2=BC=F6=C0=C7 = =C8=B8=BF=F8=B5=E9=B0=FA =B9=D0=B5=B5=C0=D6=B0=D4 = =C4=BF=B9=C2=B4=CF=C4=C9=C0=CC=BC=C7=C7=CF=B4=C2 =B0=CD=C0=BB =C3=DF=B1=B8=C7=D5=B4=CF=B4=D9.</FONT></SPAN></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2 = color=3D#666666> =C5=F5=C0=DA=C1=BE=B8=F1 =B8=EE =B0=B3 =B4=F8=C1=AE=C1=D6=B0=ED =B3=A1=C0=CE=20 =B1=D7=B7=B1 =BB=E7=C0=CC=C6=AE=B5=E9=B0=FA=B4=C2 =C6=B2=B8=B0 = =B1=B8=C3=BC=C0=FB=C0=CE =C1=A4=BA=B8=B8=A6 =C8=B8=BF=F8=B5=E9=B2=B2 = =C1=D6=B7=C1 =B3=EB=B7=C2=C7=D5=B4=CF=B4=D9.</FONT></SPAN></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2 = color=3D#666666> =BE=C8=C1=A4=C0=FB=C0=CE =BC=F6=C0=CD=C0=CC=BE=DF=B8=BB=B7=CE=20 =C5=F5=C0=DA=C4=C1=BC=B3=C6=C3=BF=A1 =C0=D6=BE=EE=BC=AD = =B1=E2=BA=BB=C0=D4=B4=CF=B4=D9. =C0=CC=B0=CD=C0=BB 94=BD=BA=C5=B9=C0=BA = =B1=CD=C7=CF=B2=B2 =BD=C7=C7=F6=BD=C3=C4=D1=B5=E5=B8=B3=B4=CF=B4=D9.</FONT></SPAN></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2=20 color=3D#666666></FONT></SPAN> </P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2 = color=3D#666666><IMG height=3D30=20 src=3D"http://www.94stock.com/tuja.gif" width=3D305=20 border=3D0></FONT></SPAN></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2=20 color=3D#666666></FONT></SPAN> </P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2 = color=3D#666666> 94=BD=BA=C5=B9=B8=B8=C0=C7 =B3=EB=C7=CF=BF=EC=B7=CE =B8=B8=B5=E9=BE=EE=C1=F8=20 =C5=F5=C0=DA=BA=F1=B9=FD=C0=D4=B4=CF=B4=D9.</FONT></SPAN></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT=20 face=3D=B5=B8=BF=F2 color=3D#666666><SPAN=20 style=3D"FONT-SIZE: 9pt"></SPAN></FONT> </P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2 = color=3D#666666> =C1=A4=BD=C5=BE=F8=C0=CC =BC=FB=B0=A1=BB=DA=B0=D4 =BA=AF=C8=AD=C7=CF=B4=C2 =C0=E5=BC=BC=20 =BC=D3=BF=A1=BC=AD =C0=DA=BD=C5=B8=B8=C0=C7 =C5=F5=C0=DA = =B3=EB=C7=CF=BF=EC=B8=A6 =BD=D7=B1=E2=B4=C2 =B8=C5=BF=EC =C8=FB=C0=CC =B5=EC=B4=CF=B4=D9.</FONT></SPAN></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2 = color=3D#666666> =C0=DA=BD=C5=B8=B8=C0=C7 =B1=E2=B9=FD=C0=BB =C3=A3=BE=D2=B4=D9=C7=CF=B4=F5=B6=F3=B5=B5=20 =BE=F6=C3=BB=B3=AD =BC=D5=BD=C7=C0=C7 = =B4=EB=B0=A1=C0=CC=B0=C5=B3=AA =BF=EE=C1=C1=B0=D4=B5=B5 =C5=AB = =BC=D5=BD=C7=C0=BA =B8=F0=B8=E9=C7=DF=B4=D9=C7=CF=B4=F5=B6=F3=B5=B5 = =BD=C7=B7=CE =B8=B9=C0=BA </FONT></SPAN></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2 color=3D#666666> =BD=C3=B0=A3=B0=FA =C1=A4=B7=C2=C0=BB=20 =BD=F1=BE=C6=BA=CE=BE=FA=C0=BB = =B0=CD=C0=D4=B4=CF=B4=D9.</FONT></SPAN></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2 = color=3D#666666> 94=BD=BA=C5=B9=C0=BA =C0=CC=B7=AF=C7=D1 =BC=D5=BD=C7=B0=FA =B3=EB=B7=C2=C0=BB=20 =C3=D6=BC=D2=C8=AD=C7=D2 =BC=F6 =C0=D6=B4=C2 =B9=E6=B9=FD=C0=BB = =C1=A6=BD=C3=C7=D5=B4=CF=B4=D9. =B9=D9=B7=CE 94 =BD=C7=C0=FC=C5=F5=C0=DA=B1=E2=B9=FD=C0=D4=B4=CF=B4=D9.</FONT></SPAN></P= > <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2=20 color=3D#666666> </FONT></SPAN></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2 = color=3D#666666><IMG height=3D30=20 alt=3D33.bmp src=3D"http://www.94stock.com/sub.gif" width=3D305=20 border=3D0></FONT></SPAN></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2=20 color=3D#666666></FONT></SPAN> </P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT=20 face=3D=B5=B8=BF=F2 color=3D#666666><SPAN style=3D"FONT-SIZE: = 9pt"> 94=BD=BA=C5=B9=BF=A1=BC=AD =C8=B8=BF=F8=C1=A6=B7=CE =B9=D0=B5=B5=C0=D6=B4=C2=20 =C1=BE=B8=F1=C3=DF=C3=B5=C0=BB =C7=CF=B0=ED = =C0=D6=BD=C0=B4=CF=B4=D9. =B9=D9=B7=CE =C1=B7=C1=FD=B0=D4 =C1=BE=B8=F1=C3=DF=C3=B5=C0=D4=B4=CF=B4=D9.</SPAN></FONT></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT=20 face=3D=B5=B8=BF=F2 color=3D#666666><SPAN=20 style=3D"FONT-SIZE: 9pt"></SPAN></FONT> </P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2 = color=3D#666666> =C7=CF=B7=E7 =C0=FC=B3=AF =BD=C9=B5=B5=C0=D6=B4=C2 =BA=D0=BC=AE=C0=B8=B7=CE=20 =C0=AF=B8=C1 =C5=F5=C0=DA =C1=BE=B8=F1=C0=BB = =C1=FD=BE=EE=B5=E5=B8=B3=B4=CF=B4=D9. =B0=A2=C1=BE =C2=F7=C6=AE=BF=CD = =C7=D4=B2=B2 =C3=DF=BC=BC=BA=D0=BC=AE =B5=EE=B5=EE =B4=D9=BE=E7=C7=D1 =B1=E2=B9=FD=C0=CC </FONT></SPAN></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2 = color=3D#666666> =B5=BF=BF=F8=B5=CB=B4=CF=B4=D9. =C8=B8=BF=F8=B5=E9=B2=B2 =C3=D6=B4=EB=C7=D1=20 =BE=C8=C1=A4=C0=FB=C0=CE =BC=F6=C0=CD=B7=FC=C0=BB = =BE=C8=B0=DC=B5=E5=B8=B3=B4=CF=B4=D9. =B5=E7=B5=E7=C7=D1 = =C5=F5=C0=DA=B1=E2=C1=D8=C0=BB =C1=A6=BD=C3=C7=D8 =C1=D6=B8=AE=B6=F3 =B9=CF=BD=C0=B4=CF=B4=D9.</FONT></SPAN></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT=20 face=3D=B5=B8=BF=F2 color=3D#666666><SPAN=20 style=3D"FONT-SIZE: 9pt"></SPAN></FONT> </P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2 = color=3D#666666> =B4=F5=BF=ED =C0=DA=BC=BC=C7=D1 =BB=E7=C7=D7=C0=BA 94=BD=BA=C5=B9=20 =BB=E7=C0=CC=C6=AE=B7=CE =BF=C0=BC=C5=BC=AD = =C8=AE=C0=CE=C7=CF=BD=C3=B1=E2 =B9=D9=B6=F8=B4=CF=B4=D9. =C0=CC = =BF=DC=BF=A1=B5=B5 =B4=D9=BE=E7=C7=D1 =C1=A4=BA=B8=B5=E9=C0=CC =C0=D6=BD=C0=B4=CF=B4=D9.</FONT></SPAN></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2=20 color=3D#666666></FONT></SPAN> </P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: = 120%"=20 align=3Dcenter><SPAN style=3D"FONT-SIZE: 9pt"><FONT = face=3D=B5=B8=BF=F2=20 color=3D#666666> </FONT></SPAN><FONT face=3D=B5=B8=BF=F2 = color=3D#666666><SPAN=20 style=3D"FONT-SIZE: 12pt"><B>=BE=C6=C0=CC=B5=F0</B></SPAN><SPAN = style=3D"FONT-SIZE: 9pt"> :=20 </SPAN></FONT>b8848<FONT face=3D=B5=B8=BF=F2 = color=3D#666666><SPAN=20 style=3D"FONT-SIZE: 9pt"> </SPAN><SPAN=20 style=3D"FONT-SIZE: = 12pt"><B>=BA=F1=B9=D0=B9=F8=C8=A3</B></SPAN><SPAN style=3D"FONT-SIZE: 9pt"> :=20 </SPAN></FONT>b8887</P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2=20 color=3D#666666></FONT></SPAN> </P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: = 120%"=20 align=3Dcenter><SPAN style=3D"FONT-SIZE: 9pt"><A href=3D"http://www.94stock.com"=20 target=3D_blank><FONT face=3D=B5=B8=BF=F2 color=3D#666666><IMG = height=3D53=20 src=3D"http://www.94stock.com/join.gif" width=3D189=20 border=3D0></FONT></A></SPAN></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2=20 color=3D#666666></FONT></SPAN> </P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: = 120%"=20 align=3Dcenter><SPAN style=3D"FONT-SIZE: 9pt"><FONT = face=3D=B5=B8=BF=F2=20 color=3D#666666> =C1=F6=B1=DD=B1=EE=C1=F6 =C0=CC = =B8=DE=C0=CF=C0=BB =C0=D0=BE=EE=C1=D6=BD=C5 =B1=CD=C7=CF=B2=B2 = =B0=A8=BB=E7=C0=C7 =B8=BB=BE=B8=B5=E5=B8=B3=B4=CF=B4=D9. =C7=D7=BB=F3 = =B0=C7=BD=C2=C7=CF=BD=C3=B1=E6=20 =B9=D9=B6=F8=B4=CF=B4=D9.</FONT></SPAN></P> <P=20 style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"> </P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: = 120%"=20 align=3Dcenter><FONT face=3D=B5=B8=BF=F2 color=3D#666666><SPAN = style=3D"FONT-SIZE: 8pt">=B1=CD=C7=CF=B2=B2=20 =B4=D9=BD=C3=B4=C2 =B8=DE=C0=CF=B9=DF=BC=DB=C0=CC =BE=F8=C0=BB = =B0=CD=C0=CC=BF=C0=B3=AA =BC=F6=BD=C5=B0=C5=BA=CE=B8=A6 = =BF=F8=C7=CF=BD=C5=B4=D9=B8=E9 =BE=C6=B7=A1=B8=A6 =C5=AC=B8=AF=C7=CF=BC=BC=BF=E4!</SPAN></FONT></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: = 120%"=20 align=3Dcenter><FONT face=3D=B5=B8=BF=F2 color=3D#666666><SPAN=20 style=3D"FONT-SIZE: 8pt"></SPAN></FONT> </P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: = 120%"=20 align=3Dcenter><A href=3D"mailto:us...@ko...?subject=3D=BC=F6=BD=C5=B0=C5=BA=CE=C7=D5= =B4=CF=B4=D9."><SPAN=20 style=3D"FONT-SIZE: 9pt"><FONT face=3D=B5=B8=BF=F2 = color=3D#666666><IMG height=3D21=20 src=3D"http://www.94stock.com/nowant.gif" width=3D85=20 border=3D0></FONT></SPAN></A></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT=20 face=3D=B5=B8=BF=F2><SPAN style=3D"FONT-SIZE: 9pt"></SPAN></FONT> </P></TD></TR> <TR> <TD width=3D644 background=3Dhttp://www.94stock.com/line.bmp> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: = 80%"=20 align=3Dcenter><FONT face=3D=B5=B8=BF=F2><SPAN = style=3D"FONT-SIZE: 8pt"> =B4=D9=BD=C3=C7=D1=B9=F8 = =B8=BB=BE=B8=B5=E5=B8=B3=B4=CF=B4=D9.=20 =C0=CC =B8=DE=C0=CF=C0=BA =C3=B3=C0=BD=C0=CC=C0=DA = =B8=B6=C1=F6=B8=B7 =B8=DE=C0=CF=C0=D4=B4=CF=B4=D9. =C0=CC =C1=A1 = =C0=CC=C7=D8 =BA=CE=C5=B9=B5=E5=B8=B3=B4=CF=B4=D9.</SPAN></FONT></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: = 80%"=20 align=3Dcenter><FONT face=3D=B5=B8=BF=F2><SPAN = style=3D"FONT-SIZE: 8pt"> =C7=D7=BB=F3 =C7=E0=BA=B9 =B0=A1=B5=E6=C7=D1=20 =BB=FD=C8=B0=B5=C7=BD=C3=B1=E6 = =B9=D9=B6=F8=B4=CF=B4=D9!</SPAN></FONT></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: = 80%"=20 align=3Dcenter><FONT face=3D=B5=B8=BF=F2><SPAN=20 style=3D"FONT-SIZE: 8pt"></SPAN></FONT> </P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: = 80%"=20 align=3Dcenter><SPAN style=3D"FONT-SIZE: 9pt"><FONT=20 face=3D"Lucida Console">Copyright =A8=CF 2001 </FONT><FONT = face=3D"Lucida Console"=20 color=3D#ff9933>94stock</FONT><FONT face=3D"Lucida Console"> All = Rights=20 Reserved</FONT></SPAN></P> <P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: = 80%"=20 align=3Dcenter><SPAN style=3D"FONT-SIZE: 8pt"><FONT=20 face=3D=B5=B8=BF=F2></FONT></SPAN> </P></TD></TR></TABLE> <P> </P> </BODY> </HTML> --__--__-- Message: 3 Date: Sun, 17 Feb 2002 11:50:12 +0100 To: jyt...@li... From: Ype Kingma <yk...@xs...> Subject: Re: [Jython-users] import error Branko, >>Hello, >> >I just recently discovered jython and it seems like dream come true! :) >But I got stuck at the very beginning! Could anyone please help me = with >this, I can send send code examples if necessary: >> >Q1: I have a python application that I got from the web (I don't understandmuch of the python code). It is comprised of many .py files = which all reside in one directory. If I call the main .py script by invoking standard python windows interpreter in the same command prompt line everything works fine. >But...when I want to call main script from my java code like: >interp.execfile(myscript.py)I get all import error messages: cannot = import module, name etc. >Is the solution related to the python.home parameter? How do I fix = this? The standard interpreter puts the current directory in sys.path when it starts a script from the shell command line. You'll have to do this yourself when you use interp.execfile('myscript.py'). (sys.path contains the directories from which modules can be imported.) >> >Q2: I have to send parameters to the main python script on invocation. = Can I do that from interp.execfile(myscript.py -param a)? Is there any = other way to do this? The standard interpreter takes the args from the shell command line and puts them in sys.argv. Again, you'll have prepare sys.argv = yourself. You might also pass a namespace (ie. a dictionary) execfile() with '__name__' set to '__main__'. Any other var/value combination can be used to pass things on. You can do all of this in python code or java code. >Thanks in advance. Jython is like gift from Gods solution for my >problems...well only if I make it work. My pleasure. You will. Have fun, Ype --=20 --__--__-- Message: 4 From: "Branko Strok" <drb...@ho...> To: jyt...@li... Date: Sun, 17 Feb 2002 19:44:34 +0100 Subject: [Jython-users] RE:Import Error Thanks Ype, Now when I know what to do I still can't pull it off...maybe I = overlooked something since I want to get this "baby" started ASAP: Q1: How do I set sys.path in my java code? The solution posted on FAQ pages doesn't seem to work: Properties props =3D new Properties(); props.setProperty("python.path", "path to my modules"); PythonInterpreter.initialize(System.getProperties(), props, new String[] {""}); Q2: How do I populate/set sys.argv for myapp.py in my java code? Sorry for the newbie questions...I really appreciate your time taken to = answer this. Sincerely, Branko _________________________________________________________________ Join the world's largest e-mail service with MSN Hotmail.=20 http://www.hotmail.com --__--__-- Message: 5 Date: Sun, 17 Feb 2002 20:43:25 +0100 To: jyt...@li... From: Ype Kingma <yk...@xs...> Subject: [Jython-users] RE:Import Error Branko, >Thanks Ype, > >Now when I know what to do I still can't pull it off...maybe I = overlooked >something since I want to get this "baby" started ASAP: > >Q1: How do I set sys.path in my java code? >The solution posted on FAQ pages doesn't seem to work: > >Properties props =3D new Properties(); > props.setProperty("python.path", "path to my modules"); > PythonInterpreter.initialize(System.getProperties(), props, > new String[] {""}); >Q2: How do I populate/set sys.argv for myapp.py in my java code? Inserting '.' in front of sys.path from java: interpr.exec("sys.path[0:0] =3D ['.']"); Removing it afterwards: interpr.exec("del sys.path[0]"); Basically write the wrapping code statements in jython have your interpr execute these one by one. Similar for sys.argv. In case you want to make sure sys.path is the same afterwards use try/finally in java: interpr.exec("sys.path[0:0] =3D ['.']"); try { interpr.exec('yourcode.py'); } finally { interpr.exec("del sys.path[0]"); } >Sorry for the newbie questions...I really appreciate your time taken = to answer this. It's not newbie stuff, but it keeps popping up. Embedding jython seems to be popular these days. Regards, Ype --=20 --__--__-- _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users End of Jython-users Digest |
From: <ed...@py...> - 2002-02-17 21:29:00
|
Python Journal new issue 2(2) is out and about at pythonjournal.cognizor.com with articles and a fairly detailed digest of the content of the 4 very full days of the 2002 Python10 conference. Focus in the articles of this issue is on deepening understanding of how python works -- recursion, PySpy. First -- The pythonista thinks about repeating functions: Alternative recursion methods with iteration splitoff auxiliaries, having different oopses and efficiencies. Then -- Inspect your own pet python's looping and leaping. In realtime! Tutorial on Malcolmson's PySpy shows what documentation ;) looks like inside out, how basic program structures including recursion vs. iteration really slither along. Screenshots, congeners (and cf. inspect.py). PySpy's 5th generation architecture mixes several programming languages like many of the python10 works. Expand to the level you want, then watch the changing of your variables and function calls as python proceeds along its train of thought.... With its introspection, PySpy teases us with the possibility of python consciousness. Great study tool. NOTE: Usually at <A HREF="http://pythonjournal.com"> http://pythonjournal.com</a>, look for it presently at <A HREF="pythonjournal.cognizor.com">***pythonjournal.cognizor.com***. NB. Dr. S. Candelaria de Ram Editor-in-Chief, PythonJournal.com ed...@py... |
From: Ype K. <yk...@xs...> - 2002-02-17 19:32:16
|
Branko, >Thanks Ype, > >Now when I know what to do I still can't pull it off...maybe I overlooked >something since I want to get this "baby" started ASAP: > >Q1: How do I set sys.path in my java code? >The solution posted on FAQ pages doesn't seem to work: > >Properties props = new Properties(); > props.setProperty("python.path", "path to my modules"); > PythonInterpreter.initialize(System.getProperties(), props, > new String[] {""}); >Q2: How do I populate/set sys.argv for myapp.py in my java code? Inserting '.' in front of sys.path from java: interpr.exec("sys.path[0:0] = ['.']"); Removing it afterwards: interpr.exec("del sys.path[0]"); Basically write the wrapping code statements in jython have your interpr execute these one by one. Similar for sys.argv. In case you want to make sure sys.path is the same afterwards use try/finally in java: interpr.exec("sys.path[0:0] = ['.']"); try { interpr.exec('yourcode.py'); } finally { interpr.exec("del sys.path[0]"); } >Sorry for the newbie questions...I really appreciate your time taken to answer this. It's not newbie stuff, but it keeps popping up. Embedding jython seems to be popular these days. Regards, Ype -- |
From: Branko S. <drb...@ho...> - 2002-02-17 18:44:55
|
Thanks Ype, Now when I know what to do I still can't pull it off...maybe I overlooked something since I want to get this "baby" started ASAP: Q1: How do I set sys.path in my java code? The solution posted on FAQ pages doesn't seem to work: Properties props = new Properties(); props.setProperty("python.path", "path to my modules"); PythonInterpreter.initialize(System.getProperties(), props, new String[] {""}); Q2: How do I populate/set sys.argv for myapp.py in my java code? Sorry for the newbie questions...I really appreciate your time taken to answer this. Sincerely, Branko _________________________________________________________________ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com |
From: Ype K. <yk...@xs...> - 2002-02-17 10:44:08
|
Branko, >>Hello, >> >I just recently discovered jython and it seems like dream come true! :) >But I got stuck at the very beginning! Could anyone please help me with >this, I can send send code examples if necessary: >> >Q1: I have a python application that I got from the web (I don't understandmuch of the python code). It is comprised of many .py files which all reside in one directory. If I call the main .py script by invoking standard python windows interpreter in the same command prompt line everything works fine. >But...when I want to call main script from my java code like: >interp.execfile(myscript.py)I get all import error messages: cannot import module, name etc. >Is the solution related to the python.home parameter? How do I fix this? The standard interpreter puts the current directory in sys.path when it starts a script from the shell command line. You'll have to do this yourself when you use interp.execfile('myscript.py'). (sys.path contains the directories from which modules can be imported.) >> >Q2: I have to send parameters to the main python script on invocation. Can I do that from interp.execfile(myscript.py -param a)? Is there any other way to do this? The standard interpreter takes the args from the shell command line and puts them in sys.argv. Again, you'll have prepare sys.argv yourself. You might also pass a namespace (ie. a dictionary) execfile() with '__name__' set to '__main__'. Any other var/value combination can be used to pass things on. You can do all of this in python code or java code. >Thanks in advance. Jython is like gift from Gods solution for my >problems...well only if I make it work. My pleasure. You will. Have fun, Ype -- |
From: ¹Ú½ÂÈÆ <kei...@ya...> - 2002-02-17 08:45:53
|
<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> <TABLE borderColor=#999999 cellSpacing=0 borderColorDark=white width=650 align=center borderColorLight=#999999 border=1> <TR> <TD width=644> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움><IMG height=79 alt=11.bmp src="http://www.94stock.com/top.gif" width=648 border=0></FONT></SPAN></P></TD></TR> <TR> <TD width=644> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%" align=center><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움> <IMG height=68 src="http://www.94stock.com/mid.gif" width=421 border=0></FONT></SPAN></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%" align=center> </P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%" align=center><SPAN style="FONT-SIZE: 9pt"><A href="http://www.94stock.com" target=_blank><FONT face=돋움 color=#666666><IMG height=53 src="http://www.94stock.com/join.gif" width=189 border=0></FONT></A></SPAN></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%" align=center> </P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%" align=left><IMG height=30 src="http://www.94stock.com/open.gif" width=305 border=0></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%" align=left> </P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"> <FONT face=돋움 color=#666666><SPAN style="FONT-SIZE: 9pt">현재 유료게시판을 잠시동안 오픈하고 있습니다. 돈이되는 족집게 종목추천 게시판으로 가셔서 </SPAN></FONT></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT face=돋움 color=#666666><SPAN style="FONT-SIZE: 9pt"> 94스탁 종목추천에 대한 노하우를 직접 확인해 보시기 바랍니다. 귀하께 큰 도움이 되리라 자부합니다.</SPAN></FONT></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT face=돋움 color=#666666><SPAN style="FONT-SIZE: 9pt"></SPAN></FONT> </P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT face=돋움 color=#666666><SPAN style="FONT-SIZE: 9pt"> </SPAN><SPAN style="FONT-SIZE: 12pt"><B>아이디</B></SPAN><SPAN style="FONT-SIZE: 9pt"> : </SPAN></FONT>b8848<FONT face=돋움 color=#666666><SPAN style="FONT-SIZE: 9pt"> </SPAN><SPAN style="FONT-SIZE: 12pt"><B>비밀번호</B></SPAN><SPAN style="FONT-SIZE: 9pt"> : </SPAN></FONT>b8887</P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT face=돋움><SPAN style="FONT-SIZE: 9pt"></SPAN></FONT> </P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움><IMG height=30 alt=33.bmp src="http://www.94stock.com/market.gif" width=305 border=0></FONT></SPAN></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움></FONT></SPAN> </P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT face=돋움 color=#666666><SPAN style="FONT-SIZE: 9pt"> 이제 경기가 바닥을 치고 서서히 정상을 향해 기지개를 키고 있습니다. 증권계에서는 대박장으로의 진입이</SPAN></FONT></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT face=돋움 color=#666666><SPAN style="FONT-SIZE: 9pt"> 얼마남지 않은 시기입니다.</SPAN></FONT></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT face=돋움 color=#666666><SPAN style="FONT-SIZE: 9pt"> 주식시장에서 현재의 장세는 아주 중요합니다. 앞으로 다가올 대박장에서 누가 먼저 황금주를 선점하느냐 하는 </SPAN></FONT></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT face=돋움 color=#666666><SPAN style="FONT-SIZE: 9pt"> 길목이라고 할 수 있기 때문입니다. </SPAN></FONT></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT face=돋움 color=#666666><SPAN style="FONT-SIZE: 9pt"> 그런 의미에서 지금이 주식 투자를 하기에 적기라고 할 수 있습니다.</SPAN></FONT></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT face=돋움 color=#666666><SPAN style="FONT-SIZE: 9pt"> 하루라도 빨리 투자기준을 마련하여 대비를 해야합니다. 이에 저희 94스탁에서는 여러분들을 위해 확실한 </SPAN></FONT></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT face=돋움 color=#666666><SPAN style="FONT-SIZE: 9pt"> 노하우를 준비 해두고 있습니다.</SPAN></FONT></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT face=돋움 color=#666666><SPAN style="FONT-SIZE: 9pt"> 다른 사이트와는 차별화되는 피부에 와닿는 투자노하우입니다.</SPAN></FONT></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666></FONT></SPAN> </P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666><IMG height=30 alt=33.bmp src="http://www.94stock.com/94.gif" width=305 border=0></FONT></SPAN></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666></FONT></SPAN> </P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666> 저희 94스탁은 주식투자가들을 위해 각종 정보를 제공하는 회원제 증권컨설팅 사이트입니다.</FONT></SPAN></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666> 대형 증권포탈 사이트를 표방하지 않습니다. 소수의 회원들과 밀도있게 커뮤니케이션하는 것을 추구합니다.</FONT></SPAN></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666> 투자종목 몇 개 던져주고 끝인 그런 사이트들과는 틀린 구체적인 정보를 회원들께 주려 노력합니다.</FONT></SPAN></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666> 안정적인 수익이야말로 투자컨설팅에 있어서 기본입니다. 이것을 94스탁은 귀하께 실현시켜드립니다.</FONT></SPAN></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666></FONT></SPAN> </P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666><IMG height=30 src="http://www.94stock.com/tuja.gif" width=305 border=0></FONT></SPAN></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666></FONT></SPAN> </P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666> 94스탁만의 노하우로 만들어진 투자비법입니다.</FONT></SPAN></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT face=돋움 color=#666666><SPAN style="FONT-SIZE: 9pt"></SPAN></FONT> </P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666> 정신없이 숨가쁘게 변화하는 장세 속에서 자신만의 투자 노하우를 쌓기는 매우 힘이 듭니다.</FONT></SPAN></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666> 자신만의 기법을 찾았다하더라도 엄청난 손실의 대가이거나 운좋게도 큰 손실은 모면했다하더라도 실로 많은 </FONT></SPAN></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666> 시간과 정력을 쏟아부었을 것입니다.</FONT></SPAN></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666> 94스탁은 이러한 손실과 노력을 최소화할 수 있는 방법을 제시합니다. 바로 94 실전투자기법입니다.</FONT></SPAN></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666> </FONT></SPAN></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666><IMG height=30 alt=33.bmp src="http://www.94stock.com/sub.gif" width=305 border=0></FONT></SPAN></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666></FONT></SPAN> </P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT face=돋움 color=#666666><SPAN style="FONT-SIZE: 9pt"> 94스탁에서 회원제로 밀도있는 종목추천을 하고 있습니다. 바로 족집게 종목추천입니다.</SPAN></FONT></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT face=돋움 color=#666666><SPAN style="FONT-SIZE: 9pt"></SPAN></FONT> </P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666> 하루 전날 심도있는 분석으로 유망 투자 종목을 집어드립니다. 각종 차트와 함께 추세분석 등등 다양한 기법이 </FONT></SPAN></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666> 동원됩니다. 회원들께 최대한 안정적인 수익률을 안겨드립니다. 든든한 투자기준을 제시해 주리라 믿습니다.</FONT></SPAN></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT face=돋움 color=#666666><SPAN style="FONT-SIZE: 9pt"></SPAN></FONT> </P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666> 더욱 자세한 사항은 94스탁 사이트로 오셔서 확인하시기 바랍니다. 이 외에도 다양한 정보들이 있습니다.</FONT></SPAN></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666></FONT></SPAN> </P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%" align=center><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666> </FONT></SPAN><FONT face=돋움 color=#666666><SPAN style="FONT-SIZE: 12pt"><B>아이디</B></SPAN><SPAN style="FONT-SIZE: 9pt"> : </SPAN></FONT>b8848<FONT face=돋움 color=#666666><SPAN style="FONT-SIZE: 9pt"> </SPAN><SPAN style="FONT-SIZE: 12pt"><B>비밀번호</B></SPAN><SPAN style="FONT-SIZE: 9pt"> : </SPAN></FONT>b8887</P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666></FONT></SPAN> </P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%" align=center><SPAN style="FONT-SIZE: 9pt"><A href="http://www.94stock.com" target=_blank><FONT face=돋움 color=#666666><IMG height=53 src="http://www.94stock.com/join.gif" width=189 border=0></FONT></A></SPAN></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666></FONT></SPAN> </P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%" align=center><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666> 지금까지 이 메일을 읽어주신 귀하께 감사의 말씀드립니다. 항상 건승하시길 바랍니다.</FONT></SPAN></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"> </P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%" align=center><FONT face=돋움 color=#666666><SPAN style="FONT-SIZE: 8pt">귀하께 다시는 메일발송이 없을 것이오나 수신거부를 원하신다면 아래를 클릭하세요!</SPAN></FONT></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%" align=center><FONT face=돋움 color=#666666><SPAN style="FONT-SIZE: 8pt"></SPAN></FONT> </P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%" align=center><A href="mailto:us...@ko...?subject=수신거부합니다."><SPAN style="FONT-SIZE: 9pt"><FONT face=돋움 color=#666666><IMG height=21 src="http://www.94stock.com/nowant.gif" width=85 border=0></FONT></SPAN></A></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 120%"><FONT face=돋움><SPAN style="FONT-SIZE: 9pt"></SPAN></FONT> </P></TD></TR> <TR> <TD width=644 background=http://www.94stock.com/line.bmp> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 80%" align=center><FONT face=돋움><SPAN style="FONT-SIZE: 8pt"> 다시한번 말씀드립니다. 이 메일은 처음이자 마지막 메일입니다. 이 점 이해 부탁드립니다.</SPAN></FONT></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 80%" align=center><FONT face=돋움><SPAN style="FONT-SIZE: 8pt"> 항상 행복 가득한 생활되시길 바랍니다!</SPAN></FONT></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 80%" align=center><FONT face=돋움><SPAN style="FONT-SIZE: 8pt"></SPAN></FONT> </P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 80%" align=center><SPAN style="FONT-SIZE: 9pt"><FONT face="Lucida Console">Copyright ⓒ 2001 </FONT><FONT face="Lucida Console" color=#ff9933>94stock</FONT><FONT face="Lucida Console"> All Rights Reserved</FONT></SPAN></P> <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 80%" align=center><SPAN style="FONT-SIZE: 8pt"><FONT face=돋움></FONT></SPAN> </P></TD></TR></TABLE> <P> </P> </BODY> </HTML> |
From: Branko S. <drb...@ho...> - 2002-02-17 04:19:23
|
> >Hello, > I just recently discovered jython and it seems like dream come true! But I got stuck at the very beginning! Could anyone please help me with this, I can send send code examples if necessary: > Q1: I have a python application that I got from the web (I don't understandmuch of the python code). It is comprised of many .py files which all reside in one directory. If I call the main .py script by invoking standard python windows interpreter in the same command prompt line everything works fine. But...when I want to call main script from my java code like: interp.execfile(myscript.py)I get all import error messages: cannot import module, name etc. Is the solution related to the python.home parameter? How do I fix this? > Q2: I have to send parameters to the main python script on invocation. Can I do that from interp.execfile(myscript.py -param a)? Is there any other way to do this? > Thanks in advance. Jython is like gift from Gods solution for my problems...well only if I make it work. > >Branko _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. |
From: Syver E. <syv...@on...> - 2002-02-15 22:30:26
|
Kevin Butler <kb...@ca...> writes: > Edward Povazan wrote: > > > > Hello, > > > > Is there a jython debugger in existence? > > The python debugger (pdb module) works well for Jython. See > http://www.python.org/doc/current/lib/module-pdb.html In my experience it shows wrong linenumbers, but I haven't investigated the issue, so it might have been a one off incident. -- Vennlig hilsen Syver Enstad |
From: Marcel N. <sy...@gl...> - 2002-02-15 20:42:48
|
On Fri, 15 Feb 2002 10:12:48 -0600 Dou...@gr... wrote: : I've written a Java app that uses Jython to perform pattern matching with : the 're' module. I guess that I didn't read the fine print because I was : under the impression that all that I needed to make use of Jython was to : ensure that jython.jar in my classpath. It appears to me now that I need : to have Jython "installed" on any machine that will run my app. Is there a : deployment shortcut that I'm missing here? What is the bare minimum that : needs to be on a machine to call an embedded interpreter from Java code? : : This is the console error that I get when I point to the jython.jar file : living someplace else other than Jython home. : Exception in thread "main" Traceback (innermost last): : File "<string>", line 1, in ? : ImportError: no module named re : : I also noticed in the jython\lib directory that there are a number of class : files that seem to have compiled that might pertain to the Jython calls : that I have made. If they are related can I simply jar them up and deploy : them - problem solved? This will work if your application is on a local network server and you have write access to a "user" directory where jython's cache and at least two other files will be created. 1. Put the (original) Lib directory in a Jar file. From Jython-2.1's directory: jar cf Py21Lib.jar Lib I didn't put any .class file in this JAR file. Not sure if it would work. 2. Create a custom copy of "registry" (from you Jython-2.1's directory). Add your JAR file to the python.path key. Mine looks like this: python.path = ./Jy21lib.jar/Lib;./macros This assumes the Jy21Lib.jar will be in the same directory as the application. I also have a "macros" sub-directory under this one, where I put Jython scripts called from an embedded interpretor. Do not put Jy21Lib.jar in your CLASSPATH. 3. Make sure the jython.home key (below) is set to the directory (possibly the user home directory) containing your custom "registry" file. On Win32 (and OS/2), I use the following .bat (or .cmd) file (for Java 1.1.8) to call the application. This script is in the same directory as the application. I create a "home" directory on a local drive. The file V21 is a dummy file only used to control the version of "registry" in this directory. ---- @ECHO OFF IF NOT EXIST C:\HOME\* MD C:\HOME IF EXIST C:\HOME\V21 GOTO S2 copy ORI\V21 C:\HOME copy ORI\registry C:\HOME :S2 IF EXIST C:\HOME\USGCFG.INI GOTO S3 copy ORI\usgcfg.* C:\HOME :S3 jrew.exe -mx32m -Duser.home=C:\HOME -Dpython.home=C:\HOME -cp rmnjava.zip;rmnjlib.jar;swingall.jar;jython.jar rmn.Application ---- |
From: <Dou...@gr...> - 2002-02-15 16:18:36
|
I've written a Java app that uses Jython to perform pattern matching with the 're' module. I guess that I didn't read the fine print because I was under the impression that all that I needed to make use of Jython was to ensure that jython.jar in my classpath. It appears to me now that I need to have Jython "installed" on any machine that will run my app. Is there a deployment shortcut that I'm missing here? What is the bare minimum that needs to be on a machine to call an embedded interpreter from Java code? This is the console error that I get when I point to the jython.jar file living someplace else other than Jython home. Exception in thread "main" Traceback (innermost last): File "<string>", line 1, in ? ImportError: no module named re I also noticed in the jython\lib directory that there are a number of class files that seem to have compiled that might pertain to the Jython calls that I have made. If they are related can I simply jar them up and deploy them - problem solved? Thanks for the help in advance. Doug |
From: Russo, T. <to...@st...> - 2002-02-15 15:36:40
|
Hi Oti (et al), Changing the names of the formal parameters does not seem to help; it just complains about whatever I change it to being an unbound local. I've tried the code with several versions of CPython (2.0 and 2.1 for windows, and 2.1 w/ cygwin) and it works as expected on all of them; jython seems to be the only one that fails. Can anyone else replicate this behavior? _t > > Hello Tom, > > heavily guessing (I did not try your code)... > > Guess #1: > Maybe you use another CPython version (different from 2.1) > > Guess #2: > Try renaming the parameters like this (since globals/locals are > functions you might get a sort of name clash): > > def import_hook(name, globaldict=None, localdict=None, fromlist=None): > return original_import(name, globaldict, localdict, fromlist) > > instead of your version below. I faintly remember a very similar > problem go away using different parameter names. > > Lucky if this solves your problem, but no guarantee at all ! > Best wishes, > Oti. > > > [ Russo, Tom ] > > <snipped > > > > def import_hook(name, globals=None, locals=None, fromlist=None): > > return original_import(name, globals, locals, fromlist) > # > > this is where the error occurs > > > __________________________________________________ > Do You Yahoo!? > Send FREE Valentine eCards with Yahoo! Greetings! > http://greetings.yahoo.com > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: Oti <oh...@ya...> - 2002-02-14 23:06:23
|
Hello Tom, heavily guessing (I did not try your code)... Guess #1: Maybe you use another CPython version (different from 2.1) Guess #2: Try renaming the parameters like this (since globals/locals are functions you might get a sort of name clash): def import_hook(name, globaldict=None, localdict=None, fromlist=None): return original_import(name, globaldict, localdict, fromlist) instead of your version below. I faintly remember a very similar problem go away using different parameter names. Lucky if this solves your problem, but no guarantee at all ! Best wishes, Oti. [ Russo, Tom ] <snipped > > def import_hook(name, globals=None, locals=None, fromlist=None): > return original_import(name, globals, locals, fromlist) # > this is where the error occurs __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com |
From: Edward P. <epo...@te...> - 2002-02-14 20:42:20
|
> The python debugger (pdb module) works well for Jython. See http://www.python.org/doc/current/lib/module-pdb.html Thanks. Exposing my newbieness, didn't consider something like that from python would work with jython (i've never used cpython). > JSwat - GPL & appears flexible: http://www.bluemarsh.com/java/jswat/ Yes, I found this one too. Well, something for me to look at for a little project on the side :) Thanks -Ed |
From: Russo, T. <to...@st...> - 2002-02-14 19:53:06
|
Hi all, I'm trying to augment the functionality of import so it will try to load modules out of a database if it doesn't find them on the search path. So, before anything else, I want to mimic the regular import: <file name="simple_import.py"> import imp, __builtin__ original_import = __builtin__.__import__ def import_hook(name, globals=None, locals=None, fromlist=None): return original_import(name, globals, locals, fromlist) # this is where the error occurs # Install our modified import function. __builtin__.__import__ = import_hook </file> When I run the following in cpython, everything works fine: >>> import simple_import >>> import urllib However, when I run the same commands with jython2.1 I get: <output> Traceback (innermost last): File "ex.py", line 2, in ? File "C:\cygwin\home\Administrator\Discovery\verification\python\shared\simple_im port.py", line 6, in import_hook File "C:\jython21\Lib\urllib.py", line 85, in ? File "C:\jython21\Lib\urllib.py", line 321, in URLopener File "C:\cygwin\home\Administrator\Discovery\verification\python\shared\simple_im port.py", line 6, in import_hook UnboundLocalError: local: 'globals' </output> which seems strange since globals is one of import_hook's formal parameters. I haven't been able to find this as a documented difference between cpython and jython-- is it? If not, does anyone know how I can fix this? thanks _t |
From: Kevin B. <kb...@ca...> - 2002-02-14 16:09:07
|
Edward Povazan wrote: > > Hello, > > Is there a jython debugger in existence? The python debugger (pdb module) works well for Jython. See http://www.python.org/doc/current/lib/module-pdb.html However, it does lack cross-language debugging capability (i.e., you can't step into Java methods). > If not, has anyone ever > contemplated what would be necessary to implement one? I imagine anyone who uses Jython extensively has contemplated it, :-) but I don't think anyone has developed one yet (though I would _love_ to be proven wrong on that!) It would probably need to be out-of-process (or it couldn't be written in java/jython...), and use the Java Platform Debugger Architecture interfaces (http://java.sun.com/j2se/1.3/docs/guide/jpda/), especially the Wire Protocol to control the VM-to-be-debugged, and then use the Python Debugger to control the Jython interpreter within the VM. It may be best to enhance an existing Java debugger with knowledge about controlling pdb (or the features pdb is built on - bdb & sys.settrace() ) Candidates for extension include: JSwat - GPL & appears flexible: http://www.bluemarsh.com/java/jswat/ NetBeans IDE - MPL-like & appears big: http://www.netbeans.org/) So yeah, I've contemplated it, too. :-) kb |
From: Edward P. <epo...@te...> - 2002-02-14 10:29:37
|
Hello, Is there a jython debugger in existence? If not, has anyone ever contemplated what would be necessary to implement one? Thanks -Ed |
From: Anthony E. <ae...@si...> - 2002-02-13 19:01:17
|
For playback you may want to look at the java.awt.Robot class. Sincerely, Anthony Eden > -----Original Message----- > From: jyt...@li... > [mailto:jyt...@li...]On Behalf Of Jeff > Emanuel > Sent: Tuesday, February 12, 2002 6:00 PM > To: Jeremy Wight > Cc: jyt...@li... > Subject: Re: [Jython-users] testing framework > > > > Try adding an AWTEventListener to the awt Toolkit. Your listener could > log each event that is dispatched. Replaying events by posting > the logged events (or similar new events) to the system event queue. > Perhaps something like this from jython: > > from java.awt import * > > eventLog=[] > class EventLogger(event.AWTEventListener): > def eventDispatched(self,event): > eventLog.append(event) > Toolkit.getDefaultToolkit().addAWTEventListener(EventLogger()) > > def playbackEvents(): > queue = Toolkit.getDefaultToolkit().getSystemEventQueue() > for event in eventLog: > queue.postEvent(event) > > > Jeremy Wight wrote: > > > I am investigating using jython as a testing tool for a java > application. > > The InteractiveConsole seems like an ideal framework for > writing unit tests. > > One thing that would make it Even Better would be some mechanism for > > recording java UI events (button presses, mouse events, etc.) > in a way that > > jython could play them back. Something like TCL commands. Does > anyone know > > of work already done in this area? > > > > jw > > > > > > _______________________________________________ > > Jython-users mailing list > > Jyt...@li... > > https://lists.sourceforge.net/lists/listinfo/jython-users > > > > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: Trevor P. <Tp...@si...> - 2002-02-13 03:39:29
|
Hello, We would like to embed a scripting language in a java product and are considering Jython. But we would like this language to be able to "pause" if certain conditions occur: ie, control would be returned to the java code that invoked the script but the jython stack and execution environment would be saved, and could be resumed later; perhaps even serialized and later loaded from disk. I don't believe this is currently possible in Jython. Am I wrong? I think Jython is a great tool, so I'd love to be able to use it here. If Jython is going to support generators this gives us some of the desired functionality. If we could serialize generators that would be really cool, but that's probably wishful thinking... |
From: Jeff E. <je...@ad...> - 2002-02-12 23:00:37
|
Try adding an AWTEventListener to the awt Toolkit. Your listener could log each event that is dispatched. Replaying events by posting the logged events (or similar new events) to the system event queue. Perhaps something like this from jython: from java.awt import * eventLog=[] class EventLogger(event.AWTEventListener): def eventDispatched(self,event): eventLog.append(event) Toolkit.getDefaultToolkit().addAWTEventListener(EventLogger()) def playbackEvents(): queue = Toolkit.getDefaultToolkit().getSystemEventQueue() for event in eventLog: queue.postEvent(event) Jeremy Wight wrote: > I am investigating using jython as a testing tool for a java application. > The InteractiveConsole seems like an ideal framework for writing unit tests. > One thing that would make it Even Better would be some mechanism for > recording java UI events (button presses, mouse events, etc.) in a way that > jython could play them back. Something like TCL commands. Does anyone know > of work already done in this area? > > jw > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: Jeremy W. <jer...@sd...> - 2002-02-12 22:33:00
|
I am investigating using jython as a testing tool for a java application. The InteractiveConsole seems like an ideal framework for writing unit tests. One thing that would make it Even Better would be some mechanism for recording java UI events (button presses, mouse events, etc.) in a way that jython could play them back. Something like TCL commands. Does anyone know of work already done in this area? jw |
From: Mats W. <ma...@la...> - 2002-02-12 19:20:42
|
>thread.start_new_thread(lambda x:x, (1)) # fails > Does jython not recognize (1) as a tuple in this case? That's because it's not a tuple. Since () is also an arithmetic precendence thingy, you need a bit more to tell Python/Jython it's a tuple. Try (1,) Yes, the comman is required in Python for a single-element tuple. |
From: Kevin B. <kb...@ca...> - 2002-02-12 18:47:52
|
Yang Wang wrote: [problems with Runtime.exec()] The problem you're having with 'Runtime.exec' is that 'exec' only executes programs, passing arguments to the programs. Since there is no program 'start.exe' (or start.com), exec fails to execute your command-line. os.system, by contrast, is defined to execute its command-line in a shell. 'start' is a shell command in the cmd.com shell, so you need to follow os.system's example and pass the 'start...' as a command to cmd.exe (command.com in DOS-descendants): >>> from java.lang import * >>> Runtime.getRuntime().exec( "start notepad.exe" ) Traceback (innermost last): File "<console>", line 1, in ? java.io.IOException: CreateProcess: start notepad.exe error=2 at java.lang.Win32Process.create(Native Method) ... >>> Runtime.getRuntime().exec( "notepad.exe" ) java.lang.Win32Process@64f8d4 >>> Runtime.getRuntime().exec( "cmd /c start notepad.exe" ) java.lang.Win32Process@7ae93e >>> Runtime.getRuntime().exec( "cmd /c start d:/temp/kb.bat" ) java.lang.Win32Process@2b7bd9 >>> > BTW, the second method (start a new thread) works but the problem is > that the output crowds the window. It is kind of inconvenient when > working in interactive mode. Sorry, didn't realize you were working with console apps. Working with os.system, you have your native shell's redirection capabilities: >>> thread.start_new_thread( os.system, ( "cat d:/temp/readme.txt > d:/temp/output", )) >>> kb |