Message12954

Author jeff.allen
Recipients doublep, jeff.allen, zyasoft
Date 2020-02-01.08:36:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1580546170.1.0.307602057927.issue2842@roundup.psfhosted.org>
In-reply-to
Content
On closer inspection, we're good on this already (in 2.7.2). The REPL uses repr(), so you see None, but Java toString() tells a different story.

>>> m.toString()
u'{0=null, a=hello, 1=null, class org.python.core.PyInteger=42}'

It was probably fixed in the course of https://hg.python.org/jython/rev/65c4b774a715 . I'll check to see this works everywhere it should. JavaProxyMap and test_dict_jy, look fairly comprehensive, and the test seems to know which types don't support null. Ok, I found a typo ... .

JavaProxySet has not had the same scrub (e.g. improved repr), but doesn't appear to suffer this problem (e.g add and update are consistent in storing a null).
History
Date User Action Args
2020-02-01 08:36:10jeff.allensetmessageid: <1580546170.1.0.307602057927.issue2842@roundup.psfhosted.org>
2020-02-01 08:36:10jeff.allensetrecipients: + jeff.allen, zyasoft, doublep
2020-02-01 08:36:10jeff.allenlinkissue2842 messages
2020-02-01 08:36:09jeff.allencreate