Message187877
| Author |
serhiy.storchaka |
| Recipients |
Arfrever, alexandre.vassalotti, asvetlov, neologix, pitrou, rhettinger, serhiy.storchaka |
| Date |
2013年04月26日.21:42:22 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1367012542.84.0.428648045906.issue17810@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> 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__) |
|