Staging
v0.8.1
https://github.com/python/cpython
Revision e089c688717fbc7c208ad30ee885dcd93a4de678 authored by Tim Peters on 10 April 2001, 03:41:41 UTC, committed by Tim Peters on 10 April 2001, 03:41:41 UTC
bugs on sizeof(long)==8 machines.  pickle.py has no idea what it's
doing with very large ints, and variously gets things right by accident,
computes nonsense, or generates corrupt pickles.  cPickle fails on
cases 2**31 <= i < 2**32:  since it *thinks* those are 4-byte ints
(the "high 4 bytes" are all zeroes), it stores them in the (signed!) BININT
format, so they get unpickled as negative values.
1 parent aa815df
History
Tip revision: e089c688717fbc7c208ad30ee885dcd93a4de678 authored by Tim Peters on 10 April 2001, 03:41:41 UTC
Test full range of native ints. This exposes two more binary pickle
Tip revision: e089c68
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