Message161497
| 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: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 |
|