Andrew Wilkins <axw...@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.

----------
nosy: +axwalk

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12687>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to