Staging
v0.8.1
https://github.com/python/cpython
Revision bfa18f711f01477b143aab37921eafabc0cb38fb authored by Tim Peters on 10 April 2001, 01:54:42 UTC, committed by Tim Peters on 10 April 2001, 01:54:42 UTC
binary pickle, and the latter contains a pickle of a negative Python
int i written on a sizeof(long)==4 box (and whether by cPickle or
pickle.py), it's read incorrectly as i + 2**32.  The patch repairs that,
and allows test_cpickle.py (to which I added a relevant test case earlier
today) to work again on sizeof(long)==8 boxes.
There's another (at least one) sizeof(long)==8 binary pickle bug, but in
pickle.py instead.  That bug is still there, and test_pickle.py doesn't
catch it yet (try pickling and unpickling, e.g., 1 << 46).
1 parent 4e6a7a6
History
Tip revision: bfa18f711f01477b143aab37921eafabc0cb38fb authored by Tim Peters on 10 April 2001, 01:54:42 UTC
Critical fix: if cPickle on a sizeof(long)==8 box is used to read a
Tip revision: bfa18f7
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.cvsignore -rw-r--r-- 79 bytes
.hgtags -rw-r--r-- 1.9 KB
LICENSE -rw-r--r-- 9.2 KB
Makefile.pre.in -rw-r--r-- 21.7 KB
README -rw-r--r-- 37.9 KB
acconfig.h -rw-r--r-- 6.0 KB
config.h.in -rw-r--r-- 16.5 KB
configure -rwxr-xr-x 176.9 KB
configure.in -rw-r--r-- 35.9 KB
install-sh -rwxr-xr-x 5.5 KB
setup.py -rw-r--r-- 24.5 KB

README

back to top