Author jeff.allen
Recipients doublep, jeff.allen, zyasoft
Date 2020-01-31.20:13:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:16jeff.allensetmessageid: <>
2020-01-31 20:13:16jeff.allensetrecipients: + jeff.allen, zyasoft, doublep
2020-01-31 20:13:16jeff.allenlinkissue2842 messages
2020-01-31 20:13:15jeff.allencreate