]> granicus.if.org Git - python/commit
Issue #4842, patch 1/2: fix pickle in Python 3.x so that pickling with the
authorMark Dickinson <dickinsm@gmail.com>
Tue, 20 Jan 2009 20:43:58 +0000 (20:43 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Tue, 20 Jan 2009 20:43:58 +0000 (20:43 +0000)
commit8dd05147d6224f4982ef6b14d904bb600ef33ea3
treef65fc6569e9fdb3ef82719d268531676f2b2743d
parent6dc4396708010c001bc4ac1a95550f806f654408
Issue #4842, patch 1/2: fix pickle in Python 3.x so that pickling with the
'L' opcode always appends an 'L' on output, just as 2.x does.  When
unpickling, remove the trailing 'L' (if present) before passing the
result to PyLong_FromString.
Lib/pickle.py
Lib/pickletools.py
Lib/test/pickletester.py
Misc/NEWS
Modules/_pickle.c