Message6295

Author pjenvey
Recipients nriley, otmarhumbel, pjenvey, zyasoft
Date 2010-12-24.00:22:33
SpamBayes Score 1.31334e-07
Marked as misclassified No
Message-id <1293150154.55.0.685476613049.issue1681@psf.upfronthosting.co.za>
In-reply-to
Content
It seems the original jsr223 impl had a similar issue to this one:

https://scripting.dev.java.net/issues/show_bug.cgi?id=5

Its fix (which was really for Jython 2.2) basically added this line to __setitem__

            if (!(obj instanceof PyClass)) {
                obj = JythonScriptEngine.py2java(value);
            }

This isn't the most efficient fix in the world (adding an instanceof check for any kind of assignment). But whatever -- I propose the attached patch with a similar fix
History
Date User Action Args
2010-12-24 00:22:34pjenveysetmessageid: <1293150154.55.0.685476613049.issue1681@psf.upfronthosting.co.za>
2010-12-24 00:22:34pjenveysetrecipients: + pjenvey, otmarhumbel, zyasoft, nriley
2010-12-24 00:22:34pjenveylinkissue1681 messages
2010-12-24 00:22:34pjenveycreate