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
(5) |
2
(3) |
3
(2) |
4
(16) |
5
(21) |
6
(5) |
7
(12) |
8
(5) |
9
(7) |
10
(12) |
11
(12) |
12
(17) |
13
(7) |
14
(9) |
15
|
16
(1) |
17
(13) |
18
(10) |
19
(4) |
20
(12) |
21
(17) |
22
(8) |
23
(3) |
24
(5) |
25
(2) |
26
(17) |
27
(2) |
28
(2) |
29
(3) |
30
(1) |
|
|
|
|
|
|
From: dman <dsh8290@ri...> - 2001-09-30 03:14:56
|
On Thu, Sep 27, 2001 at 06:42:55AM -0700, R Datta wrote: | I need to install pyXML but cant, because setup.py asks for distutils, and | jython 2.1 doesn't seem to have it. the Distutil page says that it has been | part of the distribution since 1.6 .... what gives? I don't think you can install pyXML anyways, because at least on the systems I've installed it on it requires expat (a C XML parsing library). Hopefully someone will prove me wrong though. In any case, there are Java implementations of XML parsers that can be used. Perhaps someone will wrap a java implementation to conform to the pyXML interface. -D |
From: Frank Cohen <fcohen@pu...> - 2001-09-29 15:39:32
|
In the words of Rodney: Can't we all just live together? Other analogies comes to mind: Let the farmer and the cowboy be friends. I'll keep in mind that I can get the PyTraceback in Jython. But for this application I'd like to do so in Java. Oh well, I'll keep digging. -Frank -- Frank Cohen, founder, PushToTest, http://www.pushtotest.com, phone: 408 374 7426 Come to PushToTest for Load, a free open-source tool for performance and scalability testing and data migration. > From: Ype Kingma <ykingma@...> > Date: Sat, 29 Sep 2001 11:16:29 +0100 > To: jython-users@... > Subject: Re: [Jython-users] Catching and showing errors > >> I'm writing a little utility that will run a Jython script and when it >> catches an error it will open an editor and jump to the line number that >> contains the offending script. I'm starting with a Java application and am >> correctly catching a forced example exception. Jython gives the exception a >> PyException object. From PyException how may I get a PyTraceback object, so >> I may get the line number from tb_lineno? |
From: Ype Kingma <ykingma@xs...> - 2001-09-29 09:09:46
|
Frank, >I'm writing a little utility that will run a Jython script and when it >catches an error it will open an editor and jump to the line number that >contains the offending script. I'm starting with a Java application and am >correctly catching a forced example exception. Jython gives the exception a >PyException object. From PyException how may I get a PyTraceback object, so >I may get the line number from tb_lineno? Have look at the traceback module. It's straightforward to do this in Jython, and I suspect you are getting the hang of doing jython things directly in java, (which I prefer to avoid :) )... Have fun, Ype Btw. I just started using jEdit: higly recommended, good syntax highlighting for python code. |
From: Frank Cohen <fcohen@pu...> - 2001-09-29 06:12:39
|
I'm writing a little utility that will run a Jython script and when it catches an error it will open an editor and jump to the line number that contains the offending script. I'm starting with a Java application and am correctly catching a forced example exception. Jython gives the exception a PyException object. From PyException how may I get a PyTraceback object, so I may get the line number from tb_lineno? -Frank -- Frank Cohen, founder, PushToTest, http://www.pushtotest.com, phone: 408 374 7426 Come to PushToTest for Load, a free open-source tool for performance and scalability testing and data migration. |
From: Mats Wichmann <mats@la...> - 2001-09-28 23:24:11
|
At 12:09 PM 9/28/2001 -0400, Barnabas Wolf wrote: >I'm trying to add Python scripting capabilities to an existing Java >application. I would need to be able to execute scripts fully >independently in different threads. I've attempted this by creating >an instance of PythonInterpreter in each of the threads. This approach >appears to work, but not perfectly. For example, all interpreters >share the same IO streams -- calling setOut(), setErr(), etc. on any >of the interpreters will redirect *all* of the interpreters to the >new stream. This particular problem is not a complete show stopper, >but it makes me worry about how independent the interpreters really >are. That's the way threads are supposed to work: separate threads of control within a single execution context, which means they have a lot of resources in common, including open files. Mats |
From: Barnabas Wolf <barnabas_wolf@ms...> - 2001-09-28 16:13:25
|
I'm trying to add Python scripting capabilities to an existing Java application. I would need to be able to execute scripts fully independently in different threads. I've attempted this by creating an instance of PythonInterpreter in each of the threads. This approach appears to work, but not perfectly. For example, all interpreters share the same IO streams -- calling setOut(), setErr(), etc. on any of the interpreters will redirect *all* of the interpreters to the new stream. This particular problem is not a complete show stopper, but it makes me worry about how independent the interpreters really are. Have my spiciest behaved properly only by accident? Are there any other volatile data structures shared by the interpreters? Is there a recommended way to create independent interpreters that I've overlooked? (Aside from setting up independent classloaders in a sandbox for each thread, which I'd like to avoid) Any help or suggestions would be appreciated... Barnabas |
From: R Datta <rdatta@cr...> - 2001-09-27 13:43:16
|
I need to install pyXML but cant, because setup.py asks for distutils, and jython 2.1 doesn't seem to have it. the Distutil page says that it has been part of the distribution since 1.6 .... what gives? Thanks Raj Datta Professional Services Direct : 408-530-4932 CrossAccess Corp Cell : 408-316-5473 2900 Gordon Ave #100 Fax : 408-735-0328 Santa Clara CA 95051 Email : rdatta@... |
From: John Goerzen <jgoerzen@co...> - 2001-09-27 07:38:40
|
"Robert W. Bill" <rbill@...> writes: > An implementation quirk. If dir() doesn't reveal an object's > methods, add ".__class__" to get a closer look. Is that a bug? It somewhat seems that way to me. Or is it a fluke that CPython worked the way it did? |
From: Carlos Quiroz <carlos.quiroz@we...> - 2001-09-26 21:11:46
|
On Wednesday 26 September 2001 23:57, Matt_Conway@... wrote: Some answers > Hi all, > > I recently discovered jython - I must say, very cool! > > I'm trying to embed a jython interpreter within a java application, and I > have most things working, but have a few questions: > > 1) With an embedded interpreter, do I still need the jython distribution > directory in order for the scripts I run to have access to the standard > lib (Lib\*.py)? Yes, or you can create a jar containin al libs and distribute that. In this case you have to explictly add the file to sys.path > 2) How do I add an instance of a Java object to the namespace I pass to > the PythonInterpreter exec() method? You can set a variable beforfe interpeter.set(object, "name") interpeter.exec("foo(name)") > 3) How do I programmatically define a python class (and instantiate it) > and pass it to the interpreter as in (2) ? By programmatically I mean > calling a bunch of java methods and _not_ simply evaluating a string that > has my python class. Can you explain this a little bit better, do you want to programatically define the class interface and implementation? > 4) W.r.t (2) and (3) what I'm really trying to do is delegate to a Java > instance from a Python instance so I can default some of the arguments on > some methods (i.e. make a nicer interface to my java internals for the > script writers). Any tips on how to do this? > 5) I setup my own SecurityManager to deny exits so that scripts can't > terminate my java process - anyone know of a better way to do this? Not me at least > 6) If no to (5), I wrap my script execution in a try/except block to catch > my DenyExitSecurityException, thus enabling me to swallow the ugly stack > trace when a script calls exit, however, this only works when the script > calls the java System.exit(), with sys.exit() I still get the stack trace. > Any idea how to stop this before I go digging around in the code? > > Any help appreciated, thanks, > > Matt > matt_conway@... > > > _______________________________________________ > Jython-users mailing list > Jython-users@... > https://lists.sourceforge.net/lists/listinfo/jython-users |
From: Samuele Pedroni <pedroni@in...> - 2001-09-26 21:02:47
|
[Ted Berg] > > :) no secrets, but not much of a clue either. Here's the relevant code, if > it helps. > <snip> > > I've put an __init__.py file in both the pyhandlers and nodehandlers > directories, but i still get the 'ImportError: no module named ...' errors. > ( note that they are suppressed in this code ). Then I should check that out. regards. |
From: <Matt_Conway@i2...> - 2001-09-26 20:57:45
|
Hi all, I recently discovered jython - I must say, very cool! I'm trying to embed a jython interpreter within a java application, and I have most things working, but have a few questions: 1) With an embedded interpreter, do I still need the jython distribution directory in order for the scripts I run to have access to the standard lib (Lib\*.py)? 2) How do I add an instance of a Java object to the namespace I pass to the PythonInterpreter exec() method? 3) How do I programmatically define a python class (and instantiate it) and pass it to the interpreter as in (2) ? By programmatically I mean calling a bunch of java methods and _not_ simply evaluating a string that has my python class. 4) W.r.t (2) and (3) what I'm really trying to do is delegate to a Java instance from a Python instance so I can default some of the arguments on some methods (i.e. make a nicer interface to my java internals for the script writers). Any tips on how to do this? 5) I setup my own SecurityManager to deny exits so that scripts can't terminate my java process - anyone know of a better way to do this? 6) If no to (5), I wrap my script execution in a try/except block to catch my DenyExitSecurityException, thus enabling me to swallow the ugly stack trace when a script calls exit, however, this only works when the script calls the java System.exit(), with sys.exit() I still get the stack trace. Any idea how to stop this before I go digging around in the code? Any help appreciated, thanks, Matt matt_conway@... |
From: Ted Berg <tedberg@et...> - 2001-09-26 20:35:09
|
On Wednesday 26 September 2001 13:01, you wrote: > [Ted Berg] > > > > have you an __init__.py or __init__$py.class there? > > > > No, I don't. Do I need to do anything special in the __init__.py file, > > or does it just need to be there? > > Just need to be there. If then it still don't work it's a bug ;) > or you have other secrets. > > regards. :) no secrets, but not much of a clue either. Here's the relevant code, if it helps. Essentially every time someone imports or creates a new node in a tree control in the application, a new BaseNodehandler subclass is created based on info provided in the XML that describes the node. if, for example, the XML element says it's for a textctrl_handler, the java class net.etherstorm.jOpenRPG.nodehandlers.textctrl_handler is created. If the XML element says it's for a alias_handler, the loadJavaNodehandler call returns null, and the code tries to load the script/pyhandlers/alias_handler.py script included in the jar or, failing that, the <user's home directory>/nodehandlers/alias_handler.py script. I've put an __init__.py file in both the pyhandlers and nodehandlers directories, but i still get the 'ImportError: no module named ...' errors. ( note that they are suppressed in this code ). ---- <code> /** * Method declaration * * * @param name * @param e * * @return * * */ BaseNodehandler loadJavaNodehandler( String name, Element e ) { try { String classname = "net.etherstorm.jOpenRPG.nodehandlers." + name; Class c = getClass().getClassLoader().loadClass( classname ); Class[] arg_types = { Element.class }; java.lang.reflect.Constructor ctor = c.getConstructor( arg_types ); Object[] args = { e }; BaseNodehandler bnh = ( BaseNodehandler )ctor.newInstance( args ); return bnh; } catch ( Exception ex ) { /* ExceptionHandler.handleException( ex ); */ return null; } } /** * Method declaration * * * @param name * @param e * * @return * * */ BaseNodehandler loadInternalPyNodehandler( String name, Element e ) { try { this.referenceManager.getPythonInterpreter().exec( "import java\nimport sys\njava.lang.System.out.println( sys.path )" ); System.out.println( "using internal python nodehandler" ); /* this.referenceManager.getPythonInterpreter().exec( "import scripts" ); */ /* this.referencemanager.getpythoninterpreter().exec( "import scripts.pyhandlers" ); */ this.referenceManager.getPythonInterpreter().exec( "import pyhandlers" ); this.referenceManager.getPythonInterpreter().set( "__element", e ); this.referenceManager.getPythonInterpreter().exec( "__foo = pyhandlers." + name + "( __element )" ); BaseNodehandler bnh = ( BaseNodehandler )this.referenceManager.getPythonInterpreter().get( "__foo", BaseNodehandler.class ); System.out.println( bnh ); System.out.println( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ); return bnh; } catch ( Exception ex ) { /* ExceptionHandler.handleException( ex ); */ return null; } } /** * Method declaration * * * @param name * @param e * * @return * * */ BaseNodehandler loadExternalPyNodehandler( String name, Element e ) { try { File f = new File( System.getProperty( "user.home" ) + File.separator + "jopenrpg" + File.separator + "nodehandlers" + File.separator + name + ".py" ); if ( f.exists() ) { this.referenceManager.getPythonInterpreter().exec( "import nodehandlers" ); this.referenceManager.getPythonInterpreter().set( "__element", e ); this.referenceManager.getPythonInterpreter().exec( "__foo = nodehandlers." + name + "( __element )" ); BaseNodehandler bnh = ( BaseNodehandler )this.referenceManager.getPythonInterpreter().get( "__foo", BaseNodehandler.class ); return bnh; } else { return null; } } catch ( Exception ex ) { /* ExceptionHandler.handleException( ex ); */ return null; } } /** * * * @param name * @param e * @return */ BaseNodehandler loadHandler( String name, Element e ) { BaseNodehandler bnh = loadJavaNodehandler( name, e ); if ( bnh == null ) { bnh = loadInternalPyNodehandler( name, e ); if ( bnh == null ) { bnh = loadExternalPyNodehandler( name, e ); if ( bnh == null ) { bnh = new UnknownNodehandler( e ); } } } return bnh; } </code> ---- |
From: Ted Berg <tedberg@et...> - 2001-09-26 20:25:57
|
On Wednesday 26 September 2001 13:13, Carlos Quiroz wrote: > On Wednesday 26 September 2001 22:09, Ted Berg wrote: > Hi Ted, could you describe how you load dynamically a java jar, I have had > some problems to do it > > Regards > I'm not actually dynamically loading the jar. the modules are shipped within the jar i'm using. What are you trying to load from the jar on the fly? I'm not an expert at such things, by any means, but I can try to help. ted |
From: Carlos Quiroz <carlos.quiroz@we...> - 2001-09-26 20:16:16
|
On Wednesday 26 September 2001 22:09, Ted Berg wrote: Hi Ted, could you describe how you load dynamically a java jar, I have had some problems to do it Regards > I have a java application that makes use of jython as a scripting engine. > I want to allow the end user to extend the functionality I provide by > dynamically loading module ( java or python ) at runtime. The java stuff > is working fine, but i'm running into a problem with the embedded python. > > runtime sys.path looks like this: > ['.', > '/home/tedberg/.javaws/cache/http/Djopenrpg.sourceforge.net/P80/DMfiles/RMj >openrpg.jar!Lib', > '/home/tedberg/.javaws/cache/http/Djopenrpg.sourceforge.net/P80/DMfiles/RMj >openrpg.jar!scripts', '/home/tedberg/jopenrpg'] > > I can import python modules in the directories "Lib" and "scripts" that are > in the jar. What I *cannot* do, and *need* to do, is import modules in > "!scripts/pyhandlers". > > I have tried: > from scripts import pyhandlers > import scripts.pyhandlers > import pyhandlers > > all of which return a "no module named" referencing scripts and pyhandlers > respectively. > > Also: > I can do a "import nodehandlers" ( nodehandlers is a dir in > /home/tedberg/jopenrpg ), but I cannot import any modules *within* that > directory.l > > What *am* I doing wrong? > > ted > > _______________________________________________ > Jython-users mailing list > Jython-users@... > https://lists.sourceforge.net/lists/listinfo/jython-users |
From: Ted Berg <tedberg@et...> - 2001-09-26 19:56:23
|
On Wednesday 26 September 2001 12:44, Samuele Pedroni wrote: > Hi. <snip> > > Given your setup this is the one: > > import pyhandlers > > have you an __init__.py or __init__$py.class there? No, I don't. Do I need to do anything special in the __init__.py file, or does it just need to be there? > regards. Many thanks! ted |
From: Samuele Pedroni <pedroni@in...> - 2001-09-26 19:44:34
|
Hi. [Ted Berg] > > I have a java application that makes use of jython as a scripting engine. I > want to allow the end user to extend the functionality I provide by > dynamically loading module ( java or python ) at runtime. The java stuff is > working fine, but i'm running into a problem with the embedded python. > > runtime sys.path looks like this: > ['.', > '/home/tedberg/.javaws/cache/http/Djopenrpg.sourceforge.net/P80/DMfiles/RMjopenr pg.jar!Lib', > '/home/tedberg/.javaws/cache/http/Djopenrpg.sourceforge.net/P80/DMfiles/RMjopenr pg.jar!scripts', > '/home/tedberg/jopenrpg'] > > I can import python modules in the directories "Lib" and "scripts" that are > in the jar. What I *cannot* do, and *need* to do, is import modules in > "!scripts/pyhandlers". > > I have tried: > from scripts import pyhandlers > import scripts.pyhandlers Given your setup this is the one: > import pyhandlers have you an __init__.py or __init__$py.class there? regards. |
From: Ted Berg <tedberg@et...> - 2001-09-26 19:09:38
|
I have a java application that makes use of jython as a scripting engine. I want to allow the end user to extend the functionality I provide by dynamically loading module ( java or python ) at runtime. The java stuff is working fine, but i'm running into a problem with the embedded python. runtime sys.path looks like this: ['.', '/home/tedberg/.javaws/cache/http/Djopenrpg.sourceforge.net/P80/DMfiles/RMjopenrpg.jar!Lib', '/home/tedberg/.javaws/cache/http/Djopenrpg.sourceforge.net/P80/DMfiles/RMjopenrpg.jar!scripts', '/home/tedberg/jopenrpg'] I can import python modules in the directories "Lib" and "scripts" that are in the jar. What I *cannot* do, and *need* to do, is import modules in "!scripts/pyhandlers". I have tried: from scripts import pyhandlers import scripts.pyhandlers import pyhandlers all of which return a "no module named" referencing scripts and pyhandlers respectively. Also: I can do a "import nodehandlers" ( nodehandlers is a dir in /home/tedberg/jopenrpg ), but I cannot import any modules *within* that directory.l What *am* I doing wrong? ted |
From: Mats Wichmann <mats@la...> - 2001-09-26 19:05:51
|
>Tnx for pointing out the wiki Frank. I do hope it becomes useful to folks. > >Just to clarify, the wiki is not for the book. The book is done, even >though it is not in print until December. There will be a website >associated with the book that should have additional ramblings that I >also hope are helpful. The wiki itself, however, is for my continued >work, which is future versions of Jython's online documentation. > >My previous mail (to Frank) was very unclear (that's a bad sign for a >supposed author! <wink> ). > >This is also a great time to invite people to add to the wiki. It's >in it's infancy, so there's lots of room for additions. The Wiki rather pointedly refers to having been set up in response to a burst of enthusiasm which seems to have dwindled to nothing for producing more thorough documentation. In my own case: guilty (on appearances) as charged. I've been wanting to write up several things, and ran into a period where I've had zero time. Now that I've been hovering around Jython for a while, mostly silently, I've noticed that new users crop up all the time and seem to follow this pattern: The first experiences with Jython are very easy (classpath problems notwithstanding...) - and the demos, various examples, Bruce Eckels' chapter, etc. all make it look great. Then you get into serious implementation and there's something that's unclear, or exposes something that "isn't CPython" or... My own experiences with converting/extending some Java code ran into confusion about inner classes, interfaces, etc. all of which in some sense are the Java designers' efforts to work around deficiencies in the language (note: that's an /opinion/, if it's not clear) and don't map perfectly onto Python semantics. This phase brings a burst of questions. After those are resolved, everything's rosy again. My hope would be that somehow we can get help for that set of second-level problems, but that's hard since very many of them seem to be "boundary conditons". I never found a place where the problems I ran into were described, but the lists were helpful in helping me understand the issues. My partial recoding, incidentally, turned into a redesign into "pure" Python over time... This is where pointing at the CPython docs doesn't help, and the existing Jython docs don't help much either. You can always ask on the lists and get a more interactive response, so perhaps that's okay - for now. If Jython grows much in popularity it may not be enough, esp. if people don't find their way to the lists. Hopefully, Robert's book will be able to do a lot of filling the need in this area! Mats |
From: Frank Cohen <fcohen@pu...> - 2001-09-26 18:52:57
|
I posted a brief tutorial on creating and running Java objects from Jython. Jython is wonderfully easy to do this operation, even so I could have used some hand-holding while trying it the first time. The tutorial is posted on: http://www.jython.org/cgi-bin/moin.cgi/BriefTutorial and also: http://www.pushtotest.com/p2t/home.html?igid=G4039&mid=M4031&rid=R4&c=1 -Frank -- Frank Cohen, founder, PushToTest, http://www.pushtotest.com, phone: 408 374 7426 Come to PushToTest for Load, a free open-source tool for performance and scalability testing and data migration. |
From: R Datta <rdatta@cr...> - 2001-09-26 18:49:34
|
Thanks to all who helped me with my threading and list (silly!) questions. Now I have problems with distutils .. the distutils package doesn't seem to be part of the jython distribution, and i cant install the latest distutil package because it seems to depend on distutils. I tried just copying the directories under <context>/lib ... didn't work. Thanks Raj Datta Professional Services Direct : 408-530-4932 CrossAccess Corp Cell : 408-316-5473 2900 Gordon Ave #100 Fax : 408-735-0328 Santa Clara CA 95051 Email : rdatta@... |
From: Robert W. Bill <rbill@di...> - 2001-09-26 17:29:38
|
Hi all, On Wed, 26 Sep 2001, Frank Cohen wrote: > FYI: While learning Jython I found these links to have excellent information > on Jython: > > Robert Bill's book-in-progress on Jython: > http://www.jython.org/cgi-bin/moin.cgi/JythonDevelDocs Tnx for pointing out the wiki Frank. I do hope it becomes useful to folks. Just to clarify, the wiki is not for the book. The book is done, even though it is not in print until December. There will be a website associated with the book that should have additional ramblings that I also hope are helpful. The wiki itself, however, is for my continued work, which is future versions of Jython's online documentation. My previous mail (to Frank) was very unclear (that's a bad sign for a supposed author! <wink> ). This is also a great time to invite people to add to the wiki. It's in it's infancy, so there's lots of room for additions. Links to other Jython docs would be helpful (I've found a couple Jython pages in other languages, and I'd like to know what they are about). cheers, Robert > The JavaDoc for Jython is at: > http://www.jython.org./docs/api/overview-summary.html > > The PushToTest.com Jython discussion is at: > http://www.pushtotest.com/p2t/home.html?rid=R4&igid=G4039&c=1 > > Mark Lutz's Home Page (author of Programming Python): > http://www.rmi.net/~lutz > > Guido and Fred Drake Jr.'s Python Library Reference: > http://www.python.org/doc/lib/lib.html > > Python Tutorial by Fred Drake Jr: > http://www.python.org/doc/tut/tut.html > > -Frank |
From: Frank Cohen <fcohen@pu...> - 2001-09-26 16:39:41
|
FYI: While learning Jython I found these links to have excellent information on Jython: Robert Bill's book-in-progress on Jython: http://www.jython.org/cgi-bin/moin.cgi/JythonDevelDocs The JavaDoc for Jython is at: http://www.jython.org./docs/api/overview-summary.html The PushToTest.com Jython discussion is at: http://www.pushtotest.com/p2t/home.html?rid=R4&igid=G4039&c=1 Mark Lutz's Home Page (author of Programming Python): http://www.rmi.net/~lutz Guido and Fred Drake Jr.'s Python Library Reference: http://www.python.org/doc/lib/lib.html Python Tutorial by Fred Drake Jr: http://www.python.org/doc/tut/tut.html -Frank -- Frank Cohen, founder, PushToTest, http://www.pushtotest.com, phone: 408 374 7426 Come to PushToTest for Load, a free open-source tool for performance and scalability testing and data migration. |
From: Robert W. Bill <rbill@di...> - 2001-09-26 15:26:26
|
On Wed, 26 Sep 2001, John Goerzen wrote: > In Jython: > > Jython 2.1a3 on java1.1.8 (JIT: null) > Type "copyright", "credits" or "license" for more information. > >>> dir("") > [] An implementation quirk. If dir() doesn't reveal an object's methods, add ".__class__" to get a closer look. For example: >>> dir("".__class__) ['__add__', '__cmp__', '__complex__', '__contains__', '__len__', '__mod__', '__repr__', '__str__', 'alnum', 'alpha', 'capitalize', 'center', 'classDictInit', 'count', 'decimal', 'digit', 'encode', 'endswith', 'expandtabs', 'find', 'index','isalnum', 'isalpha', 'isdecimal', 'isdigit', 'islower', 'isnumeric', 'isspace', 'istitle', 'isunicode', 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'numeric', 'replace', 'rfind', 'rindex', 'rjust', 'rstrip', 'space', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', 'translate', 'unicode', 'upper', 'zfill'] > >>> ".".join(['1', '2', '3', '4']) > '1.2.3.4' > >>> dir([]) > ['append', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort'] > > In Python: > > Python 2.0.1 (#0, Jun 23 2001, 23:50:30) > [GCC 2.95.4 20010319 (Debian prerelease)] on linux2 > Type "copyright", "credits" or "license" for more information. > >>> dir("") > ['capitalize', 'center', 'count', 'encode', 'endswith', 'expandtabs', 'find', 'index', 'isalnum', 'isalpha', 'isdigit', 'islower', 'isspace', 'istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'replace', 'rfind', 'rindex', 'rjust', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', 'translate', 'upper'] > >>> ".".join(['1', '2', '3', '4']) > '1.2.3.4' > >>> dir([]) > ['append', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort'] > > Why is Jython's dir() not showing methods that clearly exist? The > last version of Python that didn't show those on dir("") didn't > actually have them. > > |
From: John Goerzen <jgoerzen@co...> - 2001-09-26 13:40:16
|
In Jython: Jython 2.1a3 on java1.1.8 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> dir("") [] >>> ".".join(['1', '2', '3', '4']) '1.2.3.4' >>> dir([]) ['append', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort'] In Python: Python 2.0.1 (#0, Jun 23 2001, 23:50:30) [GCC 2.95.4 20010319 (Debian prerelease)] on linux2 Type "copyright", "credits" or "license" for more information. >>> dir("") ['capitalize', 'center', 'count', 'encode', 'endswith', 'expandtabs', 'find', 'index', 'isalnum', 'isalpha', 'isdigit', 'islower', 'isspace', 'istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'replace', 'rfind', 'rindex', 'rjust', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', 'translate', 'upper'] >>> ".".join(['1', '2', '3', '4']) '1.2.3.4' >>> dir([]) ['append', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort'] Why is Jython's dir() not showing methods that clearly exist? The last version of Python that didn't show those on dir("") didn't actually have them. -- John Goerzen <jgoerzen@...> GPG: 0x8A1D9A1F http://www.complete.org |
From: Lieyong Fu <LFu@Ceon.com> - 2001-09-26 03:20:54
|
With Jython-2.1a3, while trying to load Jython script from with BEA EJB, I've got the security permission error as attached even though I'had set the permission to jython.jar in the policy file. Any help is very much appreciated. java.lang.reflect.InvocationTargetException: Traceback (innermost last): (no code object) at line 0 java.security.AccessControlException: access denied (java.lang.RuntimePermission get ProtectionDomain ) at java.security.AccessControlContext.checkPermission(AccessControlContext.j ava, Compiled Code) at java.lang.Exception.<init>(Exception.java, Compiled Code) at java.lang.RuntimeException.<init>(RuntimeException.java, Compiled Code) at java.lang.SecurityException.<init>(SecurityException.java, Compiled Code) at java.security.AccessControlException.<init>(AccessControlException.java, Compiled Code) at java.security.AccessControlContext.checkPermission(AccessControlContext.j ava, Compiled Code) at java.security.AccessController.checkPermission(AccessController.java, Com piled Code) at java.lang.SecurityManager.checkPermission(SecurityManager.java, Compiled Code) at java.lang.Class.getProtectionDomain(Class.java:1231) at org.python.core.BytecodeLoader2.loadClassFromBytes(BytecodeLoader2.java) at org.python.core.BytecodeLoader.makeClass(BytecodeLoader.java, Compiled Co de) at org.python.core.BytecodeLoader.makeCode(BytecodeLoader.java) at org.python.core.Py.compile_flags(Py.java) at org.python.core.Py.compile_flags(Py.java) at org.python.core.Py.compile_flags(Py.java) at org.python.util.PythonInterpreter.exec(PythonInterpreter.java) at java.lang.reflect.Method.invoke(Native Method) at ProcessToJython.execMethod(ProcessToJython.java, Compiled Code) at ProcessToJython.runFile(ProcessToJython.java:103) at examples.ejb.basic.statelessSession.TraderBean.buy(TraderBean.java:118) at examples.ejb.basic.statelessSession.TraderBeanEOImpl.buy(TraderBeanEOImpl .java:105) at examples.ejb.basic.statelessSession.TraderBeanEOImpl_WLSkel.invoke(Trader BeanEOImpl_WLSkel.java:75) at weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObject Adapter.java, Compiled Code) at weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHan dler.java:77) at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.jav a:15) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code) java.security.AccessControlException: java.security.AccessControlException: access d enied (java.lang.RuntimePermission getProtectionDomain ) |