Message4566

Author MrMeanie
Recipients MrMeanie
Date 2009-04-22.12:30:54
SpamBayes Score 2.8663716e-10
Marked as misclassified No
Message-id <1240403455.16.0.952212485984.issue1323@psf.upfronthosting.co.za>
In-reply-to
Content
In Python code, create some Java objects (eg java.awt.Color). Place them
in a python list.
Pass this list as a parameter to a method of a Java object (as a
java.util.list), which iterates over the contents of the list, using an
iterator obtained from the iterator() method.
The objects received by the Java code are not unwrapped; you get
PyObjectDerived instances.

Problem:
The PyList.iterator() method returns an iterator obtained from the
underlying list. This is different from the implementation of
PyList.listIterator() which wraps the underlying iterator so that value
objects are wrapped and unwrapped as appropriate.
History
Date User Action Args
2009-04-22 12:30:55MrMeaniesetrecipients: + MrMeanie
2009-04-22 12:30:55MrMeaniesetmessageid: <1240403455.16.0.952212485984.issue1323@psf.upfronthosting.co.za>
2009-04-22 12:30:55MrMeanielinkissue1323 messages
2009-04-22 12:30:54MrMeaniecreate