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/2012-March/117565.html below:

[Python-Dev] Unpickling py2 str as py3 bytes (and vice versa)

[Python-Dev] Unpickling py2 str as py3 bytes (and vice versa) - implementation (issue #6784) [Python-Dev] Unpickling py2 str as py3 bytes (and vice versa) - implementation (issue #6784)Nick Coghlan ncoghlan at gmail.com
Tue Mar 13 23:49:21 CET 2012
On Wed, Mar 14, 2012 at 8:08 AM, Guido van Rossum <guido at python.org> wrote:
> If you can solve your problem with a suitably hacked Unpickler
> subclass that's fine with me, but I would personally use this
> opportunity to change the app to some other serialization format that
> is perhaps less general but more robust than pickle. I've been bitten
> by too many pickle-related problems to recommend pickle to anyone...

It's fine for in-memory storage of (almost) arbitrary objects (I use
it to stash things in a memory backed sqlite DB via SQLAlchemy) and
for IPC, but yeah, for long-term cross-version persistent storage, I'd
be looking to something like JSON rather than pickle.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
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