Message12954
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). |
|
Date |
User |
Action |
Args |
2020-02-01 08:36:10 | jeff.allen | set | messageid: <1580546170.1.0.307602057927.issue2842@roundup.psfhosted.org> |
2020-02-01 08:36:10 | jeff.allen | set | recipients:
+ jeff.allen, zyasoft, doublep |
2020-02-01 08:36:10 | jeff.allen | link | issue2842 messages |
2020-02-01 08:36:09 | jeff.allen | create | |
|