Commit e328753d authored by Gregory P. Smith's avatar Gregory P. Smith Committed by GitHub

bpo-22005: Document the reality of pickle compatibility. (GH-11054)

parent 25648d05
...@@ -71,7 +71,9 @@ The :mod:`pickle` module differs from :mod:`marshal` in several significant ways ...@@ -71,7 +71,9 @@ The :mod:`pickle` module differs from :mod:`marshal` in several significant ways
:file:`.pyc` files, the Python implementers reserve the right to change the :file:`.pyc` files, the Python implementers reserve the right to change the
serialization format in non-backwards compatible ways should the need arise. serialization format in non-backwards compatible ways should the need arise.
The :mod:`pickle` serialization format is guaranteed to be backwards compatible The :mod:`pickle` serialization format is guaranteed to be backwards compatible
across Python releases. across Python releases provided a compatible pickle protocol is chosen and
pickling and unpickling code deals with Python 2 to Python 3 type differences
if your data is crossing that unique breaking change language boundary.
Comparison with ``json`` Comparison with ``json``
^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment