A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-August/102829.html below:

[Python-Dev] pickle output not unique

[Python-Dev] pickle output not unique [Python-Dev] pickle output not uniqueKristján Valur Jónsson kristjan at ccpgames.com
Wed Aug 4 17:53:49 CEST 2010
> -----Original Message-----
> From: "Martin v. Löwis" [mailto:martin at v.loewis.de]
> Sent: 3. ágúst 2010 20:48
> To: Kristján Valur Jónsson
> Cc: Python-Dev
> Subject: Re: [Python-Dev] pickle output not unique
> 
> > I just wanted to point this out.  We'll attempt some local
> workarounds
> > here, but it should otherwise be simple to modify pickling to
> optionally
> > turn off this optimization and always generate the same output
> > irrespective of the internal reference counts of the objects.
> 
> I think there are many other instances where values that compare equal
> pickle differently in Python. By relying on this property for hashing,
> you are really operating on thin ice.

Well, it is not _that_ dangerous.  It just causes cache misses when they wouldn't be expected.
But since this has been brought up and dismissed in issue 8738, I won't pursue this further.

K
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4