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 tim.peters
Recipients
Date 2002-11-19.16:19:35
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=31435

Closed as Not-A-Bug.  The internals of pickle strings aren't 
guaranteed, just that "they work" when unpickled again, and 
these do.  If you want a hash code for a dict, don't dare use 
pickle for this either, even if it appears "to work":  it doesn't.  
The order in which dict keys are enumerated isn't defined 
either, and can and does vary across releases, and even 
across program runs.

So a reliable hash code for a dict needs to be independent of 
key iteration order, and no version of pickle spends time 
trying to force that issue (waste of time -- it isn't needed for 
pickling or unpickling).
History
Date User Action Args
2007-08-23 14:09:01adminlinkissue640645 messages
2007-08-23 14:09:01admincreate