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 mark.dickinson
Recipients mark.dickinson, pitrou, rhettinger
Date 2009-02-08.16:36:15
SpamBayes Score 7.556349e-05
Marked as misclassified No
Message-id <1234110978.24.0.675256166012.issue5186@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-02-08 16:36:18mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, pitrou
2009-02-08 16:36:18mark.dickinsonsetmessageid: <1234110978.24.0.675256166012.issue5186@psf.upfronthosting.co.za>
2009-02-08 16:36:16mark.dickinsonlinkissue5186 messages
2009-02-08 16:36:16mark.dickinsoncreate