Message12948
Version 2.7.2 is more consistent now:
>>> m[0] = None
>>> m
{0: None, u'a': u'hello', <type 'int'>: 42}
>>> m.put(1, None)
>>> m
{0: None, u'a': u'hello', 1: None, <type 'int'>: 42}
However, I think this is more consistently the opposite of what Jim recommends. I'll see what I can do about that.
I believe I did this to make the wrapped containers more like Python ones (pass more of the tests extended to these wrapped types). Some java containers disallow null keys or values or both (Hashtable, for example), so if we convert None to null, these will raise an exception. But that may be the price of the equivalence. |
|
Date |
User |
Action |
Args |
2020-01-31 20:13:16 | jeff.allen | set | messageid: <1580501596.25.0.745625823874.issue2842@roundup.psfhosted.org> |
2020-01-31 20:13:16 | jeff.allen | set | recipients:
+ jeff.allen, zyasoft, doublep |
2020-01-31 20:13:16 | jeff.allen | link | issue2842 messages |
2020-01-31 20:13:15 | jeff.allen | create | |
|