[issue17810] Implement PEP 3154 (pickle protocol 4)
Serhiy Storchaka
report at bugs.python.org
Fri Apr 26 23:42:22 CEST 2013
Serhiy Storchaka added the comment:
> A feature that may be actually nice to have in the pickle protocol would
be some framing, to help with streaming unpickling (right now unpickling
a stream can read almost one byte at a time, IIRC).
> However, that would also make the protocol and the pickler significantly
more complex.
What if just use io.BufferedReader?
if not isinstance(file, io.BufferedReader):
file = io.BufferedReader(file)
(at start of _Unpickler.__init__)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17810>
_______________________________________
More information about the Python-bugs-list
mailing list