]> granicus.if.org Git - python/commit
pickle.py, load_int(): Match cPickle's just-repaired ability to unpickle
authorTim Peters <tim.peters@gmail.com>
Tue, 28 Aug 2001 22:21:18 +0000 (22:21 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 28 Aug 2001 22:21:18 +0000 (22:21 +0000)
commit19ef62d5a98111df15400db22d18a3a555f5f1ff
tree3cf07d9a119484f98bdc4dd1cbe4787bb7c3d224
parent12778e314b884be72dba30145aff6ce8d0156344
pickle.py, load_int():  Match cPickle's just-repaired ability to unpickle
64-bit INTs on 32-bit boxes (where they become longs).  Also exploit that
int(str) and long(str) will ignore a trailing newline (saves creating a
new string at the Python level).

pickletester.py:  Simulate reading a pickle produced by a 64-bit box.
Lib/pickle.py
Lib/test/pickletester.py