mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Explain how come that pickle and cPickle, while using the same data
format, can produce different pickle strings for the same object.
This commit is contained in:
parent
e51aa5b2cd
commit
cf3ce92ef4
1 changed files with 6 additions and 0 deletions
|
@ -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.)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue