summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libpickle.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-01-06 23:34:39 (GMT)
committerGuido van Rossum <guido@python.org>1999-01-06 23:34:39 (GMT)
commitcf3ce92ef4437ff028aea25f7e7e98a35ba30b49 (patch)
treeb3ba1345928bc9e028ab09be62755068b2df4156 /Doc/lib/libpickle.tex
parente51aa5b2cd537c2253c908bccd47e58bc195796b (diff)
downloadcpython-cf3ce92ef4437ff028aea25f7e7e98a35ba30b49.zip
cpython-cf3ce92ef4437ff028aea25f7e7e98a35ba30b49.tar.gz
cpython-cf3ce92ef4437ff028aea25f7e7e98a35ba30b49.tar.bz2
Explain how come that pickle and cPickle, while using the same data
format, can produce different pickle strings for the same object.
Diffstat (limited to 'Doc/lib/libpickle.tex')
-rw-r--r--Doc/lib/libpickle.tex6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/lib/libpickle.tex b/Doc/lib/libpickle.tex
index 6f9ece7..cdfe3b7 100644
--- a/Doc/lib/libpickle.tex
+++ b/Doc/lib/libpickle.tex
@@ -294,3 +294,9 @@ subclassed. This should not be an issue in most cases.
The format of the pickle data is identical to that produced using the
\module{pickle} module, so it is possible to use \module{pickle} and
\module{cPickle} interchangably with existing pickles.
+
+(Since the pickle data format is actually a tiny stack-oriented
+programming language, and there are some freedoms in the encodings of
+certain objects, it's possible that the two modules produce different
+pickled data for the same input objects; however they will always be
+able to read each others pickles back in.)