Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
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
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
|
1
(7) |
2
(2) |
3
|
4
(4) |
5
(8) |
6
(12) |
7
(2) |
8
(6) |
9
(6) |
10
(4) |
11
(8) |
12
(7) |
13
(2) |
14
(5) |
15
(4) |
16
|
17
(7) |
18
(4) |
19
(5) |
20
(6) |
21
(8) |
22
(8) |
23
(2) |
24
|
25
(3) |
26
(24) |
27
(17) |
28
(14) |
|
|
From: Doug Landauer <landauer@go...> - 2002-02-28 20:54:51
|
>... wondering why it seems that every variable used has to >have self prefixed to it. Global and local variables do not require the "self." prefix; it is only members -- aka instance variables -- and methods that require this. >I'd just like to know why this is needed or if im doing something wrong. Or both! (Your error is not capitalizing the "I" and omitting the apostrophe. Mine is in pointing that out. You're welcome...) See http://www.python.org/doc/Humor.html#zen ... the second item says Explicit is better than implicit. That's the guiding principle for why this part of the language was designed this way. channeling-the-Tim-bot-channeling-Guido-ly, -- Doug |
From: Stephen Naicken <stephenn@co...> - 2002-02-28 20:35:09
|
Slightly off topic from jython, but does the berekely db java interface support version 1.85 if conifgured with the 1.85 compatablity? On Thu, 21 Feb 2002, Jeff Emanuel wrote: > > > You can find a Java interface to Berkeley DB which you can access > directly from jython. Feed this to google "berkeley db java" > > > Stephen Naicken wrote: > > > I have an application in python that requires the use of the bsddb > > module to extract information from the mozilla 0.92 cache database, > > cache.db. I would like to port this application to jython, but the > > bsddb module is not available. What alternatives do i have? > > > > Thanks > > > > Stephen > > > > > > _______________________________________________ > > Jython-users mailing list > > Jython-users@... > > https://lists.sourceforge.net/lists/listinfo/jython-users > > > > > > _______________________________________________ > Jython-users mailing list > Jython-users@... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: Mats Wichmann <mats@la...> - 2002-02-28 20:03:23
|
>What I'd suggest is some sort of collection of "porting stories" >(Python to Jython) and/or issues to expect when doing this kind >of thing. I'm not sure the FAQ is the best place for that, but >maybe I'm wrong. I think a "porting FAQ", whether integrated with the main FAQ or not, is always a good idea. It provides a way to capture particular issues that maybe don't belong in the main docs, but still can save folks some time if documented somewhhere. |
From: Sells, Fred <fred@ad...> - 2002-02-28 20:00:43
|
I have a .jar build with jdk 1.3 I'm running jython21 installed under jdk1.4. when I try to import my jar, I can see the jar and a dir of the imported package shows all the classes. But I cannot instantiate or otherwise reference the package. This problem is familiar, but I've searched for it without luck. Could I get a little help please |
From: O'Brien-Strain, Eamonn <eob@ex...> - 2002-02-28 19:09:53
|
From: Mike Hostetler <thehaas@bi...> - 2002-02-28 15:53:31
|
Hello, I'm trying to use Jython to get to some EJB objects via JBoss 2.2 and having very little luck. I can get to the database from another application (that also uses the EJB, but is Java) so I know that it is being deployed properly. According to the JBoss startup, my database is being deploy thus: [jdbc/WP30] Starting [jdbc/WP30] XA Connection pool jdbc/WP30 bound to java:/jdbc/WP30 [jdbc/WP30] Started But when I try to get at it via zxODBC, it doesn't work: >>> from com.ziclix.python.sql import zxJDBC >>> jndi = "jdbc/WP30" >>> db = zxJDBC.lookup(jndi) Traceback (innermost last): File "<console>", line 1, in ? DatabaseError: jdbc not bound And there is a jndi.properties file in that directory, and Jython is reading it. I know this because if I muck with it, it give me an error: original jndi.properties: java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.provider.url=localhost java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces messed-up jndi.properties: java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.provider.url=fred://localhost java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces Run with bad jndi.properties: >>> from com.ziclix.python.sql import zxJDBC >>> jndi = "jdbc/WP30" >>> db = zxJDBC.lookup(jndi) Traceback (innermost last): File "<console>", line 1, in ? DatabaseError: fred Now, I am totally lost. What could the problem be? Is there any suggestions? -- mikeh -- |
From: <doug@fi...> - 2002-02-28 14:01:11
|
Folks, Please try to avoid using 3 consecutive X's in any code samples as some email monitoring software views this as adult content and flags the email for system administrator review. The code below in which I replaced two X's with periods was the culprit on our system. Properties are diffrent. X.. > sys.argv[0] > loading of python classes. Thanks. Doug |
From: Jeff Martin <jeff@mk...> - 2002-02-28 12:21:15
|
If you look at the documentation http://java.sun.com/j2se/1.3/docs/api/java/io/Serializable.html it details this. Basically java uses two private methods. private void writeObject(java.io.ObjectOutputStream out) throws IOException and private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException; to handle serialization. You can implement you own versions of these methods on an object so that the jvm uses these to serialize/deserialize the object. This mean that when you do o = new ObjectOutputStream(new FileOutputStream(filename)); o.writeObject(myClass); java uses your o.writeObject to write the object to disk. You can then use any format you wish to describe the object. If you represent you object as a byte array you should be able to read this array into pyhon and populate a python object using this data. On Wed, 2002-02-27 at 21:47, Nicolas Bill Russell wrote: > > Really? Could you please explain in detail. :) > o = new ObjectOutputStream(new FileOutputStream(filename)); > o.writeObject(myClass); (?) > Isn't the syntax of Python classes different from Java? > Thanks, > Bill Nicolas > Jeff Martin <jeff@...> wrote: You could try implementing the readObject and writeObject methods on > your java object. This would allow you to control the format into which > they are serialized so you can interpret in in python. > > > On Tue, 2002-02-26 at 21:31, Nicolas Bill Russell wrote: > > > > The reason why I want to use Jython is that I need to access serialized Java objects. > > I've designed a system that uses objects as the main storage media rather than databases. I used Java for the frontend of my system (Swing GUIs and object serialization) and is planning to use Python (Jython) for client-side processing of Java objects. > > Is there any other (simpler) way to access Java objects using Python? > > Thanks, > > Bill Russell Gagalac-Nicolas > > > > > > > > --------------------------------- > > Do You Yahoo!? > > Get personalised at My Yahoo!. > -- > > > > --------------------------------- > Do You Yahoo!? > Get personalised at My Yahoo!. -- |
From: Gustav Bostrom <Gustav.Bostrom@eo...> - 2002-02-28 10:52:06
|
Hi! I'm still not getting this to work. Now I get another error-message: Traceback (innermost last): File "<console>", line 1, in ? File = "v:\eonworx_testbed\gubos\src\python\python-geAamB", line 14, in = runHello java.lang.IllegalAccessException at java.lang.reflect.Constructor.newInstance(Native Method) at = org.python.core.PyReflectedConstructor.__call__(PyReflectedConstructor.ja= va) at org.python.core.PyJavaInstance.__init__(PyJavaInstance.java) at org.python.core.PyJavaClass.__call__(PyJavaClass.java) at org.python.core.PyObject.__call__(PyObject.java) at = org.python.pycode._pyx2.runHello$2(v:\eonworx_testbed\gubos\src\python\py= thon-geAamB:14) at = org.python.pycode._pyx2.call_function(v:\eonworx_testbed\gubos\src\python= \python-geAamB) at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyFunction.__call__(PyFunction.java) at org.python.pycode._pyx3.f$0(<console>:1) at org.python.pycode._pyx3.call_function(<console>) at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyCode.call(PyCode.java) at org.python.core.Py.runCode(Py.java) at org.python.core.Py.exec(Py.java) at org.python.util.PythonInterpreter.exec(PythonInterpreter.java) at = org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.jav= a) at = org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.j= ava) at = org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.j= ava) at org.python.util.InteractiveConsole.push(InteractiveConsole.java) at = org.python.util.InteractiveConsole.interact(InteractiveConsole.java) at org.python.util.jython.main(jython.java) java.lang.IllegalAccessException: java.lang.IllegalAccessException What could be causing this? My classpath does not contain the Hello class (I checked with : >>> for path in System.getProperty("java.class.path").split(";"): ... print path) I've been getting this error when I try to use sys.add_extdir too. I = never seem to get this dynamic loading of Java-classes to work. I must = be doing something very wrong. /Gustav -----Original Message----- From: Samuele Pedroni [mailto:pedroni@...] Sent: Wednesday, February 27, 2002 6:15 PM To: Gustav Bostrom; Jython (E-mail) Subject: Re: [Jython-users] Example of Java class reloading Example of Java class reloadingHi From: Gustav Bostrom >Hi! >I'm struggling to get the Java-class reloading to work. >I'm not very succesful. >Does anyone have a good example to share? >I tried this, but it didn't work: >import jreload >classpath=3D["V:\\eonworx\\output\\contrib\\studio\\classes"] >classesLoadSet=3Djreload.makeLoadSet("classes",classpath) >print classesLoadSet >from classes import Hello >jreload.reload(classesLoadSet) you don't need this jreload.reload call >def rl(): > jreload.reload(classesLoadSet) >def runHello(): > Hello().sayHello() > > When I run rl() the Hello-class is still not reloaded and runHello() = still produces the old result. Assuming that you have changed the class before calling rl() <wink>, the = code seems correct. The Jython Demo/jreload directory contains the artifacts to run the = interactive session example in Doc/jreload.html documentation. Up to bugs, the only important thing to remember is that the LoadSet = path should be disjunct from classpath and sys.path otherwise reloading will not = work (Java limitation). regards, Samuele Pedroni. |
From: ¿ì~~¿Í??!! <touch114@dr...> - 2002-02-28 07:07:33
|
<html> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=_autodetect_kr"> <title>무료영화 || 무료콘서트 관람 *** 중앙테마이벤트 ***</title> </head> <body background="http://myhome.netsgo.com/missyou/yunhee/bg01.gif"> <div align="center"><div align="center"><center> <table border="0" width="800" bgcolor="#ffffff" height="1426" cellspacing="0"> <tr> <td width="222" height="24"><a href="http://www.joongangevent.com"; target="new"><img src="http://www.joongangevent.com/img/logo.gif"; border ="0" alt="중앙이벤트 홈페이지 가기" width="222" height="60"></a></td> <td width="580" height="24" colspan="2" bgcolor="#d3eff5" style="LINE-HEIGHT: 16px"><font size="2" color="#ff8040">※ 본 메일은 정보통신망에 관한 법률 제 50조에 의거하여 [광고]메일임을 밝힙니다.</font><br> <font size="2">본 메일은 발신 전용이므로 회신을 하실 수 없으며, 회신을 원하시면 제일 밑에 있는 답장하기 버튼을 클릭해 주세요~~~~</font></td> </tr> <tr> <td width="222" height="1"></td> <td width="397" height="1"></td> <td width="183" height="1"></td> </tr> <tr> <td width="800" height="1104" colspan="3" style="LINE-HEIGHT: 20px" valign="top"> <div align="center"><center><table border="0" width="98%" cellspacing="0" cellpadding="0"> <tr> <td width="100%"><strong><font color="red" size="4"><marquee border="0">★여러분! 지금~~~행복 하세요?!!★</marquee></font></strong><p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">네!...저는 중앙테마 뉴스위크지 <font color="#000066">홍보<font color="#0066ff">담당 김윤희</font></font>~~~라고 하는데요~~, 제가 여러분께~~~<br> 잠시나마~~~행복♡을 드릴려구~~~~~이렇게 허락없이 메일을 보내게 되었습니다. 용서해 주실꺼죠??...(꾸벅:감사~합니다)</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">이번에 다름이 아니라~~~저희 회사 <font color="#993300">뉴스위크 창간 11주년</font>을 맞이해서~~~</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">매~~~~~~달, <b><font color="#ff0000">영화 초대권 or 라이브 콘써트 초대권을 2장씩</font></b>(그니깐, 1인2매죠...)<br> 번갈아 가면서~~~~~~~~~~~~~~~~~~100% 무료 초대권(그니깐, 공짜 티켓...)을 매달, 매달~~ 받으실수 있구요~~~~~**(이것만 받아도 벌써, 행복 하시죠??....)</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">거기다~~~특별 사은품으로~~~~~이멜을 받으시고 신청하시는 모든분께~~~~<br> 영국산<b><font color="#ff0000"> 폴라로이드 즉석 카메라</font></b>(일회용 절대루~~~아녀요~**), 또는-<br> <b><font color="#ff0000">로만손 오리지널~~손목시계</font></b>를 혼자도 아닌, 2분이 같이~~이쁘게 차고 다니시라고~~<br> 남녀~~~커플시계(현 롯데 백화점에서 팔고 있어요~~**)를 그냥~~~~드리구 있답니다~~**</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">여기까지만, 읽으셔도 정말루~~~행복하시다구요??</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">자, 자!! 벌써, 행복 하시지엔 아직~~~이르시구요....</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">또~~~~다른 혜택이 있답니다!!</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">시중에서 판매부수 1~2위를 다투는 시사주간지~~<br> 뉴스위크 한국판을(권당:3.000)매주마다 ~~~~~~~2년동안 100권씩 쭉~~~~~~~~~~~~~~~~<br> 드리고 있답니다.....(일단,주간지만 보셔도 손해는 아니신거 아시죠??..)</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">이렇게 많은 혜택을 드리고도...남는게 있냐구요??..</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">네....말씀 잘~~~하셨습니다....<br> 저희는 지금 행사 기간이라서, 여러분께~~~잠시나마 행복과 기쁨을 전하고저-<br> 가장 최소 비용인....(누구나ㅡ부담없이 이용할수 있도록...)</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000"><font color="#ff0000"><b>한달에!! 10.500원</b></font> 뿐입니다!! (하루가,아니구...정확히 한달~가격이죠*^^*)<br> 넘~~~~~~~~~~~~~~~~~~저렴 하시죠??...(하루,식사~~정도~밖에 않되요~~~**)</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">대신, 평생은~~~~~못해 드리구요~~딱~~2년간만 이래요....<br> 넘, 짧다구요??....그래두, 어쩔수 없답니다~~~**<br> 회원기간이 길면~~~~저희가 남는게~~~~정말루~~~없거든요~~**</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">진짜루~~~제가 생각해두~~~넘 저렴해서 저두~~직원임에두 불구하구, 이 행사에 직접 신청했구여-<br> 매달,영화나 공연들을 보면서 무지~~~젊구, 행복하게(*^^*) 살고 있답니다~~**</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">암튼, 자세한 내용과 저희 행사에 저랑 함꼐~~~~참석 하시고 싶으신 분들은-<br> 여기를(<a href="http://www.joongangevent.com"; target="_blank">www.joongangevent.com</a>)클릭해 주시구요-(만약, 클릭이 않되시는 분들은 복사 하세요~~)</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">단!! 지금, 이메일을 받으신 분께만 해당이 되시는거 아시죠??..</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000">그럼, 어서~~들어 오시구요, 행복을 지금 이순간 선택 하세요~~@^^@<br> 바로, 여기~~~입니다~~~**</font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000"><a href="http://www.joongangevent.com"; target="_blank">http://www.joongangevent.com</a></font></p> <p style="LINE-HEIGHT: 20px"><font size="4" color="#000000"><a href="http://www.happyjoongang.com"; target="_blank">http://www.happyjoongang.com</a><br> <br> <b><font color="#ff0000">뉴스위크지 중앙테마 이벤트 </font></b>홍보<font color="#ff0099"><b>담당 김윤희</b></font>드림(<font color="#0000cc"><b>02-773-5030</b></font>)<br></font></p></td> </tr> </table> </center></div></td> </tr> <tr> <td width="534" height="50" style="LINE-HEIGHT: 20px" valign="center" colspan="2" bgcolor="#e3e3e3"><font size="2"> * 이멜을 받길 원하지 않으신 분들은 수신거부를 눌러 주세요....</font> <font size="2"><br> * 허락없이 메일 보낸 점 진심으로 사과 드립니다.</font> </td> <td width="266" height="50" style="LINE-HEIGHT: 20px" valign="center" bgcolor="#e3e3e3"><p align="center"><A href="mailto:trynet@...?subject=수신거부 신청&body=수신을거부합니다" border="0"><img src="http://myhome.netsgo.com/missyou/yunhee/deny1.gif"; border="0" width="70" height="20"></a> <A href="mailto:top730713@..." border="0"><img src="http://myhome.netsgo.com/missyou/yunhee/deny2.gif"; border="0" width="90" height="20"></a></p></td> </tr> <tr> <td width="800" height="50" colspan="3" style="LINE-HEIGHT: 20px" bgcolor="#d3eff5"><p align="center"><strong>오늘도 즐겁고 행복한 하루 되세요~~~~</strong></p></td> </tr> </table> </center></div> <dl> <dd align="center"> </dd> </dl> </div> http://www.business114.co.kr<IMG SRC="http://mail.joongang21.co.kr:80/cgi-auth/mailrcpt.cgi?userid=top7307&maildomainname=joongang21.co.kr&msgid=20020219.AAA1014059729@..."> </body> </html> |
From: Oti <ohumbel@ya...> - 2002-02-28 06:08:29
|
[ Hugh Rodgers ] > I have been trying to use the javaos.execute() method for > some time now, unsuccessfully. I basically wanted to do the > following: > > import os > os.execute( "f:\tests\HelloWorld" ) > > where HelloWorld is my compiled and working Java > application. Hello Hugh, please try: import os os.system( "f:\tests\HelloWorld" ) I believe the execute() method is internal to javaos.py Best wishes, Oti. __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com |
From: Samuele Pedroni <pedroni@in...> - 2002-02-28 05:47:49
|
You have encountered a bug, a workaround is to define a startup.py: import TopLevel.mainmodule and then jythonc --core --deep --jar whatever.jar startup.py but depending our needs this can be useful or not. Let us know. regards, Samuele Pedroni. ----- Original Message ----- From: Bill Janssen <bill@...> To: <jython-users@...> Sent: Thursday, February 28, 2002 4:17 AM Subject: [Jython-users] freezing an application with pythonc? Do Python packages work? > I've got a fairly large Python application working with Jython, and > I'd like to generate a jar file so that the application could be run > with a command-line like > > java -classpath myjarfile.jar TopLevel.mainmodule > > This looks pretty easy to do with jythonc, and I've gotten it to work > on some simple examples. However my large app does things like > > import TopLevel > > from inside TopLevel.mainmodule. And that doesn't work; I get an > import error. I see that the documentation page for jythonc has some > unfinished sections at the bottom, where it says: > > > Freezing modules > > jythonc can also be used to freeze a python application. The frozen > application can then be distributed and deployed as any other java > application. > > Some diffrences between an interpreted application and a frozen > application exists: > > Properties are diffrent. XXX > sys.argv[0] > loading of python classes. > > > Anyone know the specifics of those differences? I suspect my troubles > are coming from "loading of python classes". In particular, I notice > that if TopLevel contains an __init__.py file, the import fails, but > if there's no such module, the import succeeds. > > Bill > > _______________________________________________ > Jython-users mailing list > Jython-users@... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: Bill Janssen <bill@ja...> - 2002-02-28 03:18:12
|
I've got a fairly large Python application working with Jython, and I'd like to generate a jar file so that the application could be run with a command-line like java -classpath myjarfile.jar TopLevel.mainmodule This looks pretty easy to do with jythonc, and I've gotten it to work on some simple examples. However my large app does things like import TopLevel from inside TopLevel.mainmodule. And that doesn't work; I get an import error. I see that the documentation page for jythonc has some unfinished sections at the bottom, where it says: Freezing modules jythonc can also be used to freeze a python application. The frozen application can then be distributed and deployed as any other java application. Some diffrences between an interpreted application and a frozen application exists: Properties are diffrent. XXX sys.argv[0] loading of python classes. Anyone know the specifics of those differences? I suspect my troubles are coming from "loading of python classes". In particular, I notice that if TopLevel contains an __init__.py file, the import fails, but if there's no such module, the import succeeds. Bill |
From: Samuele Pedroni <pedroni@in...> - 2002-02-28 00:06:27
|
Hi. [Terry Hancock] >I was thinking of waiting until the O'Reilly book >on Jython comes out (I'm not experienced at Java, >so I don't think the other book is going to help >me so much), and then having a go at writing such >a product myself, since I want to do a fairly >large amount of Jython stuff with Zope. My attraction >to this is the beauty of having both server and >client programmed in the same programming language >(Python), instead of having to learn and interface >between two different ones. 1. I think that what you imagine is doable 2. Honestly it is not clear to me how much useful it would be. Applets can be a useful tool depending on the kind of work-distribution between server and client you want to achieve, and your deployment scenario. For sure Jython applets are a bit more heavy than pure Java ones, counting the runtime or not. 3. Writing this would require a fair amount of Java/Jython expertise, especially because at least IMO it would make sense only if there is a high-level/smooth and meaningful interface for talking back to the server, And for this there are no standard pre-built solutions. So much with ranting. About our book, [before having an unhappy reader] we try to supply valuable information to both audiences, Java-to-Jython and from-Python-to-Java/Jython To the first audience Java-to-Jython we teach Jython. To the second audience [because of space /market issues, and because there are already a lot of books and material about Java around] we supply comparative information CPython/Jython and Java/Python but we still expect that they will read/obtain introductory Java information from other sources. If someone comes from Python and have just gone through some introduction to Java, he will still have a lot of expections about what he can do and how because of the CPython background, we try to offer valuable information for the cases where those expections are going to become gotchas or delusional. There are aspects of Jython that unless you are a Java and Python expert and have possibly looked at the implementation can seem just arbitrary [more on a different post]. I don't think there is a sensible and valuable way to explain and teach Jython as Python + an Extension-that-is-a-Python-view-on- Java and then you are done with it. Java is not simply a language, it is a platform and rich library too. regards, Samuele Pedroni. |