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: Mark B. <ka...@ly...> - 2001-07-05 01:54:50
|
In one of the third party class there was a static javax.swing.Timer with an interval of 500ms and it worked fine on NT. This seemed to only work on Win2000 if the interval was greater than 2000ms. However I changed the Timer to be non static and now it seems to be working fine on both platforms and I have absolutely no idea why. Still at least it works, Mark. Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/ |
From: Mark B. <ka...@ly...> - 2001-07-04 11:25:39
|
Hello, I am writting a Jython swing application which uses some third party java classes from a Jar file. Some of the classes are used directly and some are subclassed (by my Jython code). It's a fairly dirty hack and messy but it works fine on NT/jdk1.3. However when I try running it on W2k/jdk1.3 the application flashes on to the screen and then quits straight away with no exceptions. The really really strange thing is that if I run my application on w2k it *will* work if I pass the -i argument to jython. Anybody have any ideas as to what is going on? Please, please help. Theories, hunches or past experiences all gratefully accepted. Thanks, Mark. Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/ |
From: Neil R. <ne...@bl...> - 2001-07-04 00:07:37
|
I'm using Java's security framework with the jdk1.2.2 and have noticed that all of my python classes appear to have all of the permissions I've granted to Jython, even though I haven't granted any permissions to the python classes explicitly. I'm rather new to Java security, but it looks to me like the problem lies in the org.python.core.BytecodeLoader2 class in that, in the loadClassFromBytes method, it sets the protection domain of the loaded class to its _own_ protection domain rather than consulting the active security policy for an appropriate domain based on the code source. The python classes in my application are untrusted, so it's very undesirable for them to have the same permissions as the Jython jar (which includes write access so that the compiled python classes can be written to disk). Any help would be appreciated. Thanks, Neil Computer Science is no more about computers than astronomy is about telescopes. -- E. W. Dijkstra |
From: Brian Z. <bri...@ya...> - 2001-07-03 15:32:08
|
c:\> jython Jython 2.1a1 on java1.3.1 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> import re >>> s = " Title: Ice Core Records" >>> t = re.sub("^\(\s*\)Title", "\1Dataset_Title", s) >>> t ' Title: Ice Core Records' >>> t = re.sub("^(?P<ident>\s*)Title", "\g<ident>Dataset_Title", s) >>> t ' Dataset_Title: Ice Core Records' ----- Original Message ----- From: "Chris Gokey" <cg...@gc...> To: <jyt...@li...> Sent: Tuesday, July 03, 2001 8:14 AM Subject: [Jython-users] help on simple regular expression? > Hi, > > I'm trying to use a regular expression that uses backreferences in python. > Can someone tell me where I cam going wrong? > > [cgokey@cgokey cgokey]$ jython > Jython 2.1a1 on java1.3.0 (JIT: jitc) > Type "copyright", "credits" or "license" for more information. > >>> import re > >>> s = " Title: Ice Core Records" > >>> s = re.sub("^(\s*)Title","\1Dataset_Title",s); > >>> s > '\001Dataset_Title: Ice Core Records' > >>> print s > Dataset_Title: Ice Core Records > >>> > > It looks like it isn't using the back reference? The resulting output > should be indented 3 spaces. > > Thanks, > Chris > > -- > __________________________________________________ > /\ \ > \_| Christopher D. Gokey, SSAI, NASA/GCMD | > | 18 Martin Road, Shelburne Falls, MA 01370 | > | Phone: Voice (413) 625-8129 / FAX 208-248-9055 | > | cg...@gc... / http://gcmd.nasa.gov | > | ICQ #52132386, AOL IM: chrisgokey | > | _____________________________________________|_ > \_/______________________________________________/ > > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > http://lists.sourceforge.net/lists/listinfo/jython-users > |
From: Kevin B. <kb...@ca...> - 2001-07-03 15:27:21
|
You're not quoting the backslashes. You can either double the backslashes: s = re.sub("^(\\s*)Title","\\1Dataset_Title",s) Or use raw strings (preferred): s = re.sub(r"^(\s*)Title",r"\1Dataset_Title",s) kb Chris Gokey wrote: > > Hi, > > I'm trying to use a regular expression that uses backreferences in python. > Can someone tell me where I cam going wrong? > > [cgokey@cgokey cgokey]$ jython > Jython 2.1a1 on java1.3.0 (JIT: jitc) > Type "copyright", "credits" or "license" for more information. > >>> import re > >>> s = " Title: Ice Core Records" > >>> s = re.sub("^(\s*)Title","\1Dataset_Title",s); > >>> s > '\001Dataset_Title: Ice Core Records' > >>> print s > Dataset_Title: Ice Core Records > >>> > > It looks like it isn't using the back reference? The resulting output > should be indented 3 spaces. > > Thanks, > Chris > > -- > __________________________________________________ > /\ \ > \_| Christopher D. Gokey, SSAI, NASA/GCMD | > | 18 Martin Road, Shelburne Falls, MA 01370 | > | Phone: Voice (413) 625-8129 / FAX 208-248-9055 | > | cg...@gc... / http://gcmd.nasa.gov | > | ICQ #52132386, AOL IM: chrisgokey | > | _____________________________________________|_ > \_/______________________________________________/ > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > http://lists.sourceforge.net/lists/listinfo/jython-users |
From: Chris G. <cg...@gc...> - 2001-07-03 15:17:13
|
Hi, I'm trying to use a regular expression that uses backreferences in python. Can someone tell me where I cam going wrong? [cgokey@cgokey cgokey]$ jython Jython 2.1a1 on java1.3.0 (JIT: jitc) Type "copyright", "credits" or "license" for more information. >>> import re >>> s = " Title: Ice Core Records" >>> s = re.sub("^(\s*)Title","\1Dataset_Title",s); >>> s '\001Dataset_Title: Ice Core Records' >>> print s Dataset_Title: Ice Core Records >>> It looks like it isn't using the back reference? The resulting output should be indented 3 spaces. Thanks, Chris -- __________________________________________________ /\ \ \_| Christopher D. Gokey, SSAI, NASA/GCMD | | 18 Martin Road, Shelburne Falls, MA 01370 | | Phone: Voice (413) 625-8129 / FAX 208-248-9055 | | cg...@gc... / http://gcmd.nasa.gov | | ICQ #52132386, AOL IM: chrisgokey | | _____________________________________________|_ \_/______________________________________________/ |
From: D-Man <ds...@ri...> - 2001-07-03 03:22:20
|
On Mon, Jul 02, 2001 at 09:45:25PM -0400, Jeff Dever wrote: | Goodday, | | We are using Jython to provide scripting capability to a java based | simulation tool at Nortel Networks (no, we're not dead). The simulation | is of a CORBA client we us with our network management software. We | have found the Jython intrepter to be somewhat of a magic bullet for our | application. Fantastic work. A few questions: | | Is there any facility for JavaDoc style comments in the Jython source? | As the rest of the application is in Java, combined with the fact that | the Jython features are very external, means that we would like to be | able to extract good documentation in a reasonable format. You can't put javadoc comments in because /** */ is not a comment delimiter in Python and the javadoc tool won't recognize the python constructs. You can, however, use the python style of including docstrings in various objects (modules, classes, functions, methods) and use a tool such as PyDoc (this one is by Ka-Ping Yee) to generate documentation. There are some other tools too -- try searching on Parnassus or Google (I haven't used any yet since I haven't had a large enough python project to warrant the time spent learning one). | Do java threads started in Jython code run fully as normal java | threads? Our application is highly multithreaded and runs on multi-cpu | Sun hardware and needs full threading suppport from the JVM. I don't really know. I would imagine that they do because how else are you going to get a thread in Java? The source is available for those who really want to know all the details :-). -D |
From: Jeff D. <js...@sy...> - 2001-07-03 01:44:23
|
Goodday, We are using Jython to provide scripting capability to a java based simulation tool at Nortel Networks (no, we're not dead). The simulation is of a CORBA client we us with our network management software. We have found the Jython intrepter to be somewhat of a magic bullet for our application. Fantastic work. A few questions: Is there any facility for JavaDoc style comments in the Jython source? As the rest of the application is in Java, combined with the fact that the Jython features are very external, means that we would like to be able to extract good documentation in a reasonable format. Do java threads started in Jython code run fully as normal java threads? Our application is highly multithreaded and runs on multi-cpu Sun hardware and needs full threading suppport from the JVM. Thanks. |
From: Dean T. <dth...@me...> - 2001-07-02 19:17:18
|
> 2) Soappy requires a SAX 2 compliant XML parser -- does such a beast exist > in pure Python or do I have to try to integrate a Java implementation > (Xerces ??) into the xml package? Has this already been done somewhere? I have played around with Xerces from within Jython. It went so smoothly that you may find Xerces serves your needs without any integration work. That is, you may find Soappy can happily use the Xerces Java classes directly. I'd be interested in hearing how it goes. Dean -----Original Message----- From: jyt...@li... [mailto:jyt...@li...]On Behalf Of jyt...@li... Sent: Monday, July 02, 2001 3:06 PM To: jyt...@li... Subject: Jython-users digest, Vol 1 #193 - 3 msgs Send Jython-users mailing list submissions to jyt...@li... To subscribe or unsubscribe via the World Wide Web, visit http://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. soappy in Jython ... (Alan Littleford) 2. soappy in Jython ... (Alan Littleford) 3. Re: soappy in Jython ... (D-Man) --__--__-- Message: 1 From: "Alan Littleford" <al...@li...> To: <jyt...@li...> Date: Sun, 1 Jul 2001 16:18:10 -0700 Subject: [Jython-users] soappy in Jython ... This is a multi-part message in MIME format. ------=_NextPart_000_0039_01C10249.6B8F5BF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I am trying to get soappy (www.actzero.com) running under Jython (2.1). It seems the xml package is absent from Jython so I am wondering: 1) Can I simply copy over the xml package from Python 2.0 2) Soappy requires a SAX 2 compliant XML parser -- does such a beast exist in pure Python or do I have to try to integrate a Java implementation (Xerces ??) into the xml package? Has this already been done somewhere? This is for proof of concept stuff, so I don't need blazing performance on the XML side. Sorry if this is a RTFM question -- I'm still getting up to speed on Jython, and I didn't see much (beyond a brief exchange) about 6 months ago) in the archives. Thanks Alan ------=_NextPart_000_0039_01C10249.6B8F5BF0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR></HEAD> <BODY> <DIV><FONT face=3DArial size=3D2><SPAN class=3D513540523-01072001>I am = trying to get=20 soappy (<A href=3D"http://www.actzero.com">www.actzero.com</A>) running = under=20 Jython (2.1). It seems the xml package is absent from Jython so I am=20 wondering:</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D513540523-01072001></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D513540523-01072001>1) Can = I simply copy=20 over the xml package from Python 2.0</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D513540523-01072001>2) = Soappy requires a=20 SAX 2 compliant XML parser -- does such a beast exist in pure Python or = do I=20 have to try to integrate a Java implementation (Xerces ??) into the xml = package?=20 Has this already been done somewhere?</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D513540523-01072001></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D513540523-01072001>This = is for proof of=20 concept stuff, so I don't need blazing performance on the XML=20 side.</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D513540523-01072001></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D513540523-01072001>Sorry = if this is a=20 RTFM question -- I'm still getting up to speed on Jython, and I didn't = see much=20 (beyond a brief exchange) about 6 months ago) in the=20 archives.</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D513540523-01072001></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D513540523-01072001>Thanks</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D513540523-01072001></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D513540523-01072001>Alan=20 </SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D513540523-01072001></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D513540523-01072001></SPAN></FONT> </DIV></BODY></HTML> ------=_NextPart_000_0039_01C10249.6B8F5BF0-- --__--__-- Message: 2 From: "Alan Littleford" <al...@li...> To: <jyt...@li...> Date: Sun, 1 Jul 2001 16:36:02 -0700 Subject: [Jython-users] soappy in Jython ... This is a multi-part message in MIME format. ------=_NextPart_000_003D_01C1024B.EA91F000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I am trying to get soappy (www.actzero.com) running under Jython (2.1). It seems the xml package is absent from Jython so I am wondering: 1) Can I simply copy over the xml package from Python 2.0 2) Soappy requires a SAX 2 compliant XML parser -- does such a beast exist in pure Python or do I have to try to integrate a Java implementation (Xerces ??) into the xml package? Has this already been done somewhere? This is for proof of concept stuff, so I don't need blazing performance on the XML side. Sorry if this is a RTFM question -- I'm still getting up to speed on Jython, and I didn't see much (beyond a brief exchange) about 6 months ago) in the archives. Thanks Alan ------=_NextPart_000_003D_01C1024B.EA91F000 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR></HEAD> <BODY> <DIV><FONT face=3DArial size=3D2> <DIV><FONT face=3DArial size=3D2><SPAN class=3D513540523-01072001>I am = trying to get=20 soappy (<A href=3D"http://www.actzero.com/">www.actzero.com</A>) running = under=20 Jython (2.1). It seems the xml package is absent from Jython so I am=20 wondering:</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D513540523-01072001></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D513540523-01072001>1) Can = I simply copy=20 over the xml package from Python 2.0</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D513540523-01072001>2) = Soappy requires a=20 SAX 2 compliant XML parser -- does such a beast exist in pure Python or = do I=20 have to try to integrate a Java implementation (Xerces ??) into the xml = package?=20 Has this already been done somewhere?</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D513540523-01072001></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D513540523-01072001>This = is for proof of=20 concept stuff, so I don't need blazing performance on the XML=20 side.</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D513540523-01072001></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D513540523-01072001>Sorry = if this is a=20 RTFM question -- I'm still getting up to speed on Jython, and I didn't = see much=20 (beyond a brief exchange) about 6 months ago) in the=20 archives.</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D513540523-01072001></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D513540523-01072001>Thanks</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D513540523-01072001></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D513540523-01072001>Alan=20 </SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D513540523-01072001></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D513540523-01072001></SPAN></FONT> </DIV></FONT></DIV></BODY>= </HTML> ------=_NextPart_000_003D_01C1024B.EA91F000-- --__--__-- Message: 3 Date: Mon, 2 Jul 2001 13:41:07 -0400 From: D-Man <ds...@ri...> To: jyt...@li... Subject: Re: [Jython-users] soappy in Jython ... On Sun, Jul 01, 2001 at 04:18:10PM -0700, Alan Littleford wrote: | I am trying to get soappy (www.actzero.com) running under Jython (2.1). It | seems the xml package is absent from Jython so I am wondering: | | 1) Can I simply copy over the xml package from Python 2.0 AFAIK xml in CPython is a few Python modules mainly for API specs, but the core of it is in C (expat, or some other implementation). | 2) Soappy requires a SAX 2 compliant XML parser -- does such a beast exist | in pure Python or do I have to try to integrate a Java implementation | (Xerces ??) into the xml package? Has this already been done somewhere? Since the xml parsing in CPython is C code, I don't know of any pure python implementations. You might want to check out the Jakarta project, a part of the Apache group. They have a bunch of Java stuff including an XML parser (don't know if it is SAX2 or not) and regex stuff. The regex stuff is used by Jython, and the XML stuff is used by the (Java) company I am working for right now (but I haven't worked on that part of the project). HTH, -D --__--__-- _______________________________________________ Jython-users mailing list Jyt...@li... http://lists.sourceforge.net/lists/listinfo/jython-users End of Jython-users Digest |
From: D-Man <ds...@ri...> - 2001-07-02 17:41:11
|
On Sun, Jul 01, 2001 at 04:18:10PM -0700, Alan Littleford wrote: | I am trying to get soappy (www.actzero.com) running under Jython (2.1). It | seems the xml package is absent from Jython so I am wondering: | | 1) Can I simply copy over the xml package from Python 2.0 AFAIK xml in CPython is a few Python modules mainly for API specs, but the core of it is in C (expat, or some other implementation). | 2) Soappy requires a SAX 2 compliant XML parser -- does such a beast exist | in pure Python or do I have to try to integrate a Java implementation | (Xerces ??) into the xml package? Has this already been done somewhere? Since the xml parsing in CPython is C code, I don't know of any pure python implementations. You might want to check out the Jakarta project, a part of the Apache group. They have a bunch of Java stuff including an XML parser (don't know if it is SAX2 or not) and regex stuff. The regex stuff is used by Jython, and the XML stuff is used by the (Java) company I am working for right now (but I haven't worked on that part of the project). HTH, -D |
From: Alan L. <al...@li...> - 2001-07-01 23:38:14
|
I am trying to get soappy (www.actzero.com) running under Jython (2.1). It seems the xml package is absent from Jython so I am wondering: 1) Can I simply copy over the xml package from Python 2.0 2) Soappy requires a SAX 2 compliant XML parser -- does such a beast exist in pure Python or do I have to try to integrate a Java implementation (Xerces ??) into the xml package? Has this already been done somewhere? This is for proof of concept stuff, so I don't need blazing performance on the XML side. Sorry if this is a RTFM question -- I'm still getting up to speed on Jython, and I didn't see much (beyond a brief exchange) about 6 months ago) in the archives. Thanks Alan |
From: Alan L. <al...@li...> - 2001-07-01 23:20:09
|
I am trying to get soappy (www.actzero.com) running under Jython (2.1). It seems the xml package is absent from Jython so I am wondering: 1) Can I simply copy over the xml package from Python 2.0 2) Soappy requires a SAX 2 compliant XML parser -- does such a beast exist in pure Python or do I have to try to integrate a Java implementation (Xerces ??) into the xml package? Has this already been done somewhere? This is for proof of concept stuff, so I don't need blazing performance on the XML side. Sorry if this is a RTFM question -- I'm still getting up to speed on Jython, and I didn't see much (beyond a brief exchange) about 6 months ago) in the archives. Thanks Alan |
From: Mark B. <ka...@ly...> - 2001-06-29 10:10:35
|
Hello. Have a look at the demo/swing/Console.py in your Jython dir. It's fairly basic but functional. I'm also creating a Jython application where I needed to add a Jython Console to a JFrame and so far I've found this works ok. Hope this helps, Mark. Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/ |
From: Carlos Q. <car...@rt...> - 2001-06-29 09:05:24
|
I have done something similar I my plugin to integrate Jython into jEdit. You can find it at=20 http://koti.welho.com/cquiroz/jedit It is not exactly a frame but you have a field where you can type methods which are passed to the interpreter and displayed on a TextComponent. -----Original Message----- From: Dave Crane [mailto:ul...@li...]=20 Sent: 29 June 2001 11:45 To: jyt...@li... Subject: [Jython-users] console in a gui Hi Enrico, I've wondered about doing this myself, not yet sat down and coded it though. The main work would be in low-level keystroke handling - collect all input characters until [enter] is pressed, then send them to the interpreter. Beyond that, it should be possible to pipe them down to the existing InteractiveConsole code. I've poked about in the internals of that, and successfully subclassed it so that it stores all the stuff from an interactive session as a file which can then be replayed/edited etc. It wasn't too hard - I'm happy to share the source if you think it would help you. Re piping, I don't think the current code has reconfigurable input/output streams, but it's possible to redirect system.in & .out as long as they aren't needed for another purpose. Might be nicer to alter the interpreter to have configurable streams, but might be a bit of work (don't know, maybe it wouldn't?)! Would it be cleaner to implement the class as a keylistener rather than a specific GUI frame e.g. JFrame. Not everybody uses Swing, might be nice to have a listener we could plug in and out of any text component? Again, just a thought. If you do get down to coding this in earnest, give me a shout and I'll see if I'm not too busy to lend a hand. Regards, Dave -----Original Message----- > Hi all, > I am wondering if anybody has already tried to build a jython console > inside a JFrame. I had a look at jython.java in oder to understand how > input & output of an interactive ssession is handled but couldn't cope > with it :-( >=20 > Any ideas/suggestions is welcome > Enrico --=20 Get your free email from www.linuxmail.org=20 Powered by Outblaze _______________________________________________ Jython-users mailing list Jyt...@li... http://lists.sourceforge.net/lists/listinfo/jython-users |
From: Dave C. <ul...@li...> - 2001-06-29 08:45:07
|
Hi Enrico, I've wondered about doing this myself, not yet sat down and coded it though. The main work would be in low-level keystroke handling - collect all input characters until [enter] is pressed, then send them to the interpreter. Beyond that, it should be possible to pipe them down to the existing InteractiveConsole code. I've poked about in the internals of that, and successfully subclassed it so that it stores all the stuff from an interactive session as a file which can then be replayed/edited etc. It wasn't too hard - I'm happy to share the source if you think it would help you. Re piping, I don't think the current code has reconfigurable input/output streams, but it's possible to redirect system.in & .out as long as they aren't needed for another purpose. Might be nicer to alter the interpreter to have configurable streams, but might be a bit of work (don't know, maybe it wouldn't?)! Would it be cleaner to implement the class as a keylistener rather than a specific GUI frame e.g. JFrame. Not everybody uses Swing, might be nice to have a listener we could plug in and out of any text component? Again, just a thought. If you do get down to coding this in earnest, give me a shout and I'll see if I'm not too busy to lend a hand. Regards, Dave -----Original Message----- > Hi all, > I am wondering if anybody has already tried to build a jython console > inside a JFrame. > I had a look at jython.java in oder to understand how input & output > of an interactive ssession is handled but couldn't cope with it :-( > > Any ideas/suggestions is welcome > Enrico -- Get your free email from www.linuxmail.org Powered by Outblaze |
From: Robert W. B. <rb...@di...> - 2001-06-28 19:43:57
|
On Thu, 28 Jun 2001, Enrico Spinielli wrote: > Hi all, > I am wondering if anybody has already tried to build a jython console > inside a JFrame. > I had a look at jython.java in oder to understand how input & output > of an interactive ssession is handled but couldn't cope with it :-( Looking at the swing demo that comes with Jython will likely help. Also, Tom Maxwell wrote a gui console and put it at: ftp://iee.umces.edu/SME3/JConsole/ Unfortunately, I haven't been able to connect there. Maybe others have this. Alternatively, you can just dig in and post questions with code examples here as you go. -robert |
From: Ype K. <yk...@xs...> - 2001-06-28 19:26:44
|
Enrico, There is a Console.py file in the Demo folder (iirc) of the jython distribution. It works fine for me. Make sure to have swing on the class path. Have fun, Ype >Hi all, >I am wondering if anybody has already tried to build a jython console >inside a JFrame. >I had a look at jython.java in oder to understand how input & output >of an interactive ssession is handled but couldn't cope with it :-( > >Any ideas/suggestions is welcome >Enrico > > > >_______________________________________________ >Jython-users mailing list >Jyt...@li... >http://lists.sourceforge.net/lists/listinfo/jython-users |
From: Enrico S. <Enr...@ma...> - 2001-06-28 18:44:50
|
Hi all, I am wondering if anybody has already tried to build a jython console inside a JFrame. I had a look at jython.java in oder to understand how input & output of an interactive ssession is handled but couldn't cope with it :-( Any ideas/suggestions is welcome Enrico |
From: syKim <re...@ne...> - 2001-06-28 07:39:40
|
SGVsbG8uLg0KDQpJJ20gdHJ5aW5nIHNvbWUgcHJvZ3JhbSB3aXRoIHNldmVyYWwgcHkgZmlsZSAo bWFpbiBtb2R1bGUgJiBzdWIgbW9kdWxlcykNCg0KaXQgaXMgYXBwbGV0IHVzaW5nIHN3aW5nLi4o aW1wb3J0IGphdmEgbGlicmFyeSkNCg0KSSBjb21waWxlZCBpdCB0aGlzIG1ldGhvZCA6DQoNCmp5 dGhvbmMgLWMgLWQgLWogTWFpbi5qYXIgTWFpbi5weQ0KDQp3aGVuIEkgbW9kaWZ5IGEgc3ViIG1v ZHVsZSwgSSBjb21waWxlIHRoZSBtYWluIG1vZHVsZS4NCg0KYnV0LCBpdCBpcyBjb21waWxlZCBl dmVyeSBzdWIgbW9kdWxlIGZpbGUgdG9nZXRoZXIuDQoNCkl0IHRha2VzIHNvIGxvbmcgdGltZSBp biBteSBjb21wdXRlci4uDQoNCmNhbiBhbnkgbWV0aG9kIGNvbXBpbGUgb25seSBhIHN1YiBtb2R1 bGU/DQoNCnBsZWFzZSBzb21lIGFkdmljZSA6KQ0KDQog |
From: <br...@je...> - 2001-06-26 22:51:31
|
I just had this one today (though this was with JPython 1.1+09, not the latest stuff..). The cachedir had been copied from one location to another, and was forever trying to cache in a location that no longer existed. The solution to this was simply to delete the cachedir. A new one was created on the next run, and it worked fine from then on. Hope that helps, Bryn > -----Original Message----- > From: James House [SMTP:jh...@pa...] > Sent: Tuesday, June 26, 2001 3:41 PM > To: jyt...@li... > Cc: Kevin Butler > Subject: Re: [Jython-users] What does this mean? > > > No... I definitely have plenty of disk space. and nothing is write > protected (several other jars that are getting cached come from the same > directory, and write to the same place that this one tries to) > > The only things that "stick out" about this Jar are: It's quite big ( 6.8 > > megs) and has *lots* of classes in it (4617 classes) -- could this somehow > > be exceeding some limit in the Jython code? > > James > > BTW: Is Eric Nolte still at campuspipeline? > > At 6/26/2001 04:25 PM -0600, you wrote: > >Out of disk space? > >Write-protected/broken file there? > > > >kb > > > >James House wrote: > > > > > Can anyone tell me what this message means? > > > > > > *sys-package-mgr*: can't write cache file for > > > 'D:\repository\java\lib\xcbl30r2.jar' > > > > > > -- Or more particularly, what I might be able to do to get it to work? > (all > > > of my > > > other JARs in the classpath get cached just fine... and this one is > > quite big > > > (well over a meg) so it takes quite a bit of time to chug through each > > > time, I > > > really wish it would cache... > > > > > > James > > > > > > _______________________________________________ > > > Jython-users mailing list > > > Jyt...@li... > > > http://lists.sourceforge.net/lists/listinfo/jython-users > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > http://lists.sourceforge.net/lists/listinfo/jython-users |
From: James H. <jh...@pa...> - 2001-06-26 22:39:40
|
No... I definitely have plenty of disk space. and nothing is write protected (several other jars that are getting cached come from the same directory, and write to the same place that this one tries to) The only things that "stick out" about this Jar are: It's quite big ( 6.8 megs) and has *lots* of classes in it (4617 classes) -- could this somehow be exceeding some limit in the Jython code? James BTW: Is Eric Nolte still at campuspipeline? At 6/26/2001 04:25 PM -0600, you wrote: >Out of disk space? >Write-protected/broken file there? > >kb > >James House wrote: > > > Can anyone tell me what this message means? > > > > *sys-package-mgr*: can't write cache file for > > 'D:\repository\java\lib\xcbl30r2.jar' > > > > -- Or more particularly, what I might be able to do to get it to work? (all > > of my > > other JARs in the classpath get cached just fine... and this one is > quite big > > (well over a meg) so it takes quite a bit of time to chug through each > time, I > > really wish it would cache... > > > > James > > > > _______________________________________________ > > Jython-users mailing list > > Jyt...@li... > > http://lists.sourceforge.net/lists/listinfo/jython-users |
From: James H. <jh...@pa...> - 2001-06-26 22:21:35
|
Can anyone tell me what this message means? *sys-package-mgr*: can't write cache file for 'D:\repository\java\lib\xcbl30r2.jar' -- Or more particularly, what I might be able to do to get it to work? (all of my other JARs in the classpath get cached just fine... and this one is quite big (well over a meg) so it takes quite a bit of time to chug through each time, I really wish it would cache... James |
From: Steve Y. <st...@ca...> - 2001-06-26 22:13:20
|
Works for me. Check out http://www.cabochon.com. I have about five jython interpreters in the game for different purposes, plus one per wizard character. -steve > > Does anyone know how difficult it is to get multiple embedded Jython > > interpreters running in the same Java process in separate threads? > > > > I'm writing a multi-user game engine using Jython as the interactive > > programming environment. Each interpreter instance has its stdout/stderr > > redirected to a network connection. > > > > The problems I seem to have are: > > > > stdout/stderr for all instances get redirected to the last one set. > > > > If I try to 'set' a variable in one interpreter from another, the > > variable gets lost. > > > > Thanks in advance, > > > > Adrian St. John |
From: Adrian S. J. <as...@pa...> - 2001-06-26 12:32:56
|
(Reply to Ype, with clarification) -----Original Message----- From: Adrian St. John [mailto:as...@pa...] Sent: 26 June 2001 13:03 To: Ype Kingma Subject: RE: [Jython-users] Multiple instances of embedded JythonInterpreter > From: Ype Kingma [mailto:yk...@xs...] > > >stdout/stderr for all instances get redirected to the last one set. > > Stdout/stderr are 'one per process'. You'll have to use your own > output functions (or methods) in your threads. You can use > the thread identity provided by Jython to select a network > connection in your output functions. I already do a fair amount of this; I think I assumed that I could set the Jython stdout/stderr (not the Java one) on a per-instance basis. I'll go back and look at my code. > >If I try to 'set' a variable in one interpreter from another, the > >variable gets lost. > > Variables in module scope are 'one per process', because modules > are 'one per process'. If you change these, the changes are visible > in other threads. You'll probably need the threading module > to synchronize access to these. > Local function variables are 'one per thread', and invisible to > other threads. Just to explain exactly what I'm doing: (Java code, from memory): public class Player { private InteractiveInterpreter _interp; public Player() { _interp = new InteractiveInterpreter(); _interp.set("me", this); } }; If an instance of Player is created from pure Java code (ie not inside a Jython interpreter instance), the variable 'me' exists in the interpreter. If an instance of Player is created from inside a Jython interpreter instance, the variable 'me' doesn't exist. CLARIFICATION: What I should have said is: If an instance of Player is created from pure Java code (ie not inside a Jython interpreter instance), the variable 'me' exists in the Player._interp (ie Player._interp.exec("print me") results in a name-not-known exception) If an instance of Player is created from inside a Jython interpreter instance, the variable 'me' doesn't exist in Player._interp Any ideas? Thanks, Adrian. |
From: Ype K. <yk...@xs...> - 2001-06-26 12:06:24
|
My reply to Adrian: >Date: Tue, 26 Jun 2001 13:58:19 +0100 >To: "Adrian St. John" <as...@pa...> >From: Ype Kingma <yk...@xs...> >Subject: Re: [Jython-users] Multiple instances of embedded Jython Interpreter >Cc: >Bcc: >X-Attachments: > >Adrian, > >you wrote: >>Hi, >> >>Does anyone know how difficult it is to get multiple embedded Jython >>interpreters running in the same Java process in separate threads? > >It's easy, you can do it from jython and from java, your choice. > >>I'm writing a multi-user game engine using Jython as the interactive >>programming environment. Each interpreter instance has its stdout/stderr >>redirected to a network connection. >> >>The problems I seem to have are: >> >>stdout/stderr for all instances get redirected to the last one set. > >Stdout/stderr are 'one per process'. You'll have to use your own >output functions (or methods) in your threads. You can use >the thread identity provided by Jython to select a network >connection in your output functions. > >You could even replace >sys.stdout and sys.stderr by objects doing precisely that, >(make sure to synchronize though, see below). >Have a look at console.py in the jython distribution for >an example of stream redirection. > >Of the top of my head: > >import thread > >def threadIdentity(): > return thread.currentThread() # or something like this, see the python docs. > >import threading > >class OutputRedirectByThread: > def __init__(self): > self.networkStreamByThread = {} > self.sema = threading.semaphore() # might not be needed > > def startRedirectingThreadOutput(networkOutputStream): > self.networkStreamdByThread[threadIdentity()] = networkOutputStream > > def write(self, s): > self.sema.acquire() > try: self.networkStreamByThread[threadIdentity()].write(s) > finally: self.sema.release() > > def flush(self): > self.sema.acquire() > try: self.networkStreamByThread[threadIdentity()].flush() > finally: self.sema.release() > >Create an object of this class, use it to replace sys.stdout and/or >sys.stderr, and call startRedirectingThreadOutput() just before invoking >the interpreter in the thread. > >Also you'll probably need stdin from the network connection too, >so a more elaborate design with stdin/stdout/stderr per thread >might be better. > >>If I try to 'set' a variable in one interpreter from another, the >>variable gets lost. > >Variables in module scope are 'one per process', because modules >are 'one per process'. If you change these, the changes are visible >in other threads. You'll probably need the threading module >to synchronize access to these. >Local function variables are 'one per thread', and invisible to >other threads. > >>Thanks in advance, > >My pleasure, > >Ype Kingma |