[Checkins] [zopefoundation/ZODB] 2dcd09: - ZODB now uses pickle protocol 3 for both Python ...
GitHub
noreply at github.com
Mon Mar 26 00:17:38 CEST 2018
Branch: refs/heads/python3-compatible-persistent-refs
Home: https://github.com/zopefoundation/ZODB
Commit: 2dcd0919e84cb6ec687bc2695258888e2703f2ef
https://github.com/zopefoundation/ZODB/commit/2dcd0919e84cb6ec687bc2695258888e2703f2ef
Author: Jim Fulton <jim at jimfulton.info>
Date: 2018-03-25 (Sun, 25 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.
(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