From: Samuele P. <ped...@st...> - 2005-04-07 15:32:52
|
Mike Garcia wrote: >I just built the 2.2a1 code base and tried to do > > > >>>>from org.python.core import * >>>> >>>> >Traceback (innermost last): > File "<console>", line 1, in ? >TypeError: cannot lazy load PyObject subclass > >Why does this not work anymore? Also this either: > > because import of PyObject subclasses now should produce a PyType instance, not a PyJavaClass anymore, but with lazy loading (wich is what import * for Java stuff now does and wich may well be removed making it eager) we already have a PyJavaClass instance and it is too late to convert it to a PyType so we fail. > > >>>>from org.python.core import PyDictionary >>>>pyo=PyDictionary() >>>> >>>> this should work if one doesn't do the former in the same session I think. >Traceback (innermost last): > File "<console>", line 1, in ? >TypeError: cannot lazy load PyObject subclass > >In 2.2a0 it worked. This is causing some problems for my PyDictionary map >implementation. Also I had to stub out PyGenerator, PyCallIter and PySequenceIter >since I'm trying to get PyIterator to implement java.util.Iterator. The hasNext and >remove methods are TBD. > > >Thanks, >Mike > > > >__________________________________ >Yahoo! Messenger >Show us what our next emoticon should look like. Join the fun. >http://www.advision.webevents.yahoo.com/emoticontest > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Jython-dev mailing list >Jyt...@li... >https://lists.sourceforge.net/lists/listinfo/jython-dev > > |