Message4351

Author jsaiz
Recipients jsaiz
Date 2009-03-25.15:05:37
SpamBayes Score 3.5661085e-06
Marked as misclassified No
Message-id <1237993538.4.0.307730505882.issue1288@psf.upfronthosting.co.za>
In-reply-to
Content
Debugging the code, it happens that
PyStringMap.__setitem__(String key, PyObject newValue)
on the "locals" object of PythonInterpreter is called with the arguments

key = "j"
newValue = null

As far as I know, setting "j" to null shouldn't happen; a null object in
Jython is PyNone, which is not a Java null.

Checking whether an object exists in the namespace is done by asking for
its key and seeing that the returned value is not null. Therefore,
setting "j" to null provokes the NameError later on.
History
Date User Action Args
2009-03-25 15:05:38jsaizsetmessageid: <1237993538.4.0.307730505882.issue1288@psf.upfronthosting.co.za>
2009-03-25 15:05:38jsaizsetrecipients: + jsaiz
2009-03-25 15:05:38jsaizlinkissue1288 messages
2009-03-25 15:05:38jsaizcreate