[Checkins] [zopefoundation/ZODB] 12ee41: - ZODB now uses pickle protocol 3 for both Python ...
GitHub
noreply at github.com
Mon Mar 26 15:21:19 CEST 2018
Branch: refs/heads/master
Home: https://github.com/zopefoundation/ZODB
Commit: 12ee41c47310156027a674932df34b60de86ba36
https://github.com/zopefoundation/ZODB/commit/12ee41c47310156027a674932df34b60de86ba36
Author: Jim Fulton <jim at jimfulton.info>
Date: 2018-03-26 (Mon, 26 Mar 2018)
Changed paths:
M CHANGES.rst
M src/ZODB/_compat.py
M src/ZODB/serialize.py
M src/ZODB/tests/testSerialize.py
Log Message:
-----------
- ZODB now uses pickle protocol 3 for both Python 2 and Python 3. (#194)
(Previously, protocol 2 was used for Python 2.)
The zodbpickle package provides a `zodbpickle.binary` string type
that should be used in Python 2 to cause binary strings to be saved
in a pickle binary format, so they can be loaded correctly in
Python 3. Pickle protocol 3 is needed for this to work correctly.
- Object identifiers in persistent references are saved as
`zodbpickle.binary` strings in Python 2, so that they are loaded
correctly in Python 3.
More information about the checkins
mailing list