Message161497
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. |
|
Date |
User |
Action |
Args |
2012-05-24 10:38:30 | sbermeister | set | recipients:
+ sbermeister |
2012-05-24 10:38:30 | sbermeister | set | messageid: <1337855910.73.0.357745750737.issue14898@psf.upfronthosting.co.za> |
2012-05-24 10:38:30 | sbermeister | link | issue14898 messages |
2012-05-24 10:38:29 | sbermeister | create | |
|