[issue12687] Python 3.2 fails to load protocol 0 pickle
report at bugs.python.org
Sat Aug 6 05:26:03 CEST 2011
Andrew Wilkins <axwalk at gmail.com> added the comment:
In _pickle.c, the load_put function calls _Unpickler_Readline, which may prefetch data and place it after the line read in with "readline". load_put then calls PyLong_FromString, which doesn't like the trailing data after the '\n'.
Maybe just use PyOS_strtol instead? Alternatively, replace the newline with a null byte.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list