]> granicus.if.org Git - python/commit
- A new pickle protocol (protocol 3) is added with explicit support
authorGuido van Rossum <guido@python.org>
Mon, 17 Mar 2008 22:56:06 +0000 (22:56 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 17 Mar 2008 22:56:06 +0000 (22:56 +0000)
commitf41698169198b32eecd60337a9437ea8c1714380
treec7e6d48433cd32bcb489a4b2100353f2edf42b79
parent953e4e52c4fb63e501bcbaa97db857de9c159cf5
- A new pickle protocol (protocol 3) is added with explicit support
  for bytes.  This is the default protocol.  It intentionally cannot
  be unpickled by Python 2.x.

- When a pickle written by Python 2.x contains an (8-bit) str
  instance, this is now decoded to a (Unicode) str instance.  The
  encoding used to do this defaults to ASCII, but can be overridden
  via two new keyword arguments to the Unpickler class.  Previously
  this would create bytes instances, which is usually wrong: str
  instances are often used to pickle attribute names etc., and text is
  more common than binary data anyway.
Lib/pickle.py
Lib/pickletools.py
Lib/test/pickletester.py
Lib/test/test_pickle.py
Lib/test/test_pickletools.py
Misc/NEWS