Message81389
In the issue 5169 discussion, Antoine Pitrou suggested that for an object
x without a __hash__ method, id()/8 might be a better hash value than
id(), since dicts use the low order bits of the hash as initial key, and
the 3 lowest bits of an id() will always be zero.
Here's a patch. |
|
Date |
User |
Action |
Args |
2009-02-08 16:36:18 | mark.dickinson | set | recipients:
+ mark.dickinson, rhettinger, pitrou |
2009-02-08 16:36:18 | mark.dickinson | set | messageid: <1234110978.24.0.675256166012.issue5186@psf.upfronthosting.co.za> |
2009-02-08 16:36:16 | mark.dickinson | link | issue5186 messages |
2009-02-08 16:36:16 | mark.dickinson | create | |
|