This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sbermeister
Recipients sbermeister
Date 2012-05-24.10:38:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1337855910.73.0.357745750737.issue14898@psf.upfronthosting.co.za>
In-reply-to
Content
Not sure if this is predicted behaviour, but if I make a dict like:

>>> x = {0: 'bar', True: 'foo'}

and modify True with 1, or 0 with False:
>>> x[False] = 'boo'
>>> x[1] = 'far'

the modifications happen:
>>> x
{0: 'boo', True: 'far'}

Is this expected behaviour? It seems that the hashes for 'False' and 0 are confused, as are the hashes for 'True' and 1.
History
Date User Action Args
2012-05-24 10:38:30sbermeistersetrecipients: + sbermeister
2012-05-24 10:38:30sbermeistersetmessageid: <1337855910.73.0.357745750737.issue14898@psf.upfronthosting.co.za>
2012-05-24 10:38:30sbermeisterlinkissue14898 messages
2012-05-24 10:38:29sbermeistercreate