A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2009-January/085587.html below:

[Python-Dev] undesireable unpickle behavior, proposed fix

[Python-Dev] undesireable unpickle behavior, proposed fix [Python-Dev] undesireable unpickle behavior, proposed fixAlexandre Vassalotti alexandre at peadrop.com
Wed Jan 28 03:51:04 CET 2009
On Tue, Jan 27, 2009 at 5:16 PM, Jake McGuire <jake at youtube.com> wrote:
> Another vaguely related change would be to store string and unicode objects
> in the pickler memo keyed as themselves rather than their object ids.

That wouldn't be difficult to do--i.e., simply add a type check in
Pickler.memoize and another in Pickler.save().  But I am not sure if
that would be a good idea, since you would end up hashing every string
pickled. And, that would probably be expensive if you are pickling for
long strings.

-- Alexandre
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