]> granicus.if.org Git - python/commit
Implement an idea by Paul Rubin:
authorGuido van Rossum <guido@python.org>
Fri, 5 Apr 2002 19:30:08 +0000 (19:30 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 5 Apr 2002 19:30:08 +0000 (19:30 +0000)
commite276339cea6a8ea9ac9ff72ed9e1b8740eceac49
treeb6bed6eb8aae111a9d2fe7cbb000c50a881719e3
parentd15a0a05d3161930928355e0b89091994bc54ee5
Implement an idea by Paul Rubin:

Change pickling format for bools to use a backwards compatible
encoding.  This means you can pickle True or False on Python 2.3
and Python 2.2 or before will read it back as 1 or 0.  The code
used for pickling bools before would create pickles that could
not be read in previous Python versions.
Lib/pickle.py
Lib/test/test_bool.py
Modules/cPickle.c