From: <bc...@wo...> - 2001-02-12 09:55:09
|
On Sun, 11 Feb 2001 22:20:09 -0800 (PST), you wrote: >Ugh! I've been working all day translating some low level JPython >classes to Java. I want to see how much it improves performance. > >But I'm getting the following error when trying to use the Java classes >in JPython. Here's a brief example in hope that someone will point out >my error. > >$ cat Queue.java A badly chosen name. In Jython there is a Queue.py module and an import Queue might not find the java class. [snip] >$ TestMsgQueue.py >qSize=false >startQ=Queue@4fec48 >type(startQ)=<jclass org.python.core.PyInstance at 6411754> >Traceback (innermost last): > File "TestMsgQueue.py", line 15, in ? > File "TestMsgQueue.py", line 13, in __init__ >TypeError: putMsg(): 1st arg can't be coerced to Queue A JPython bug. Fixed in Jython-2.0. regards, finn |