Message138672
> Benjamin Peterson <benjamin@python.org> added the comment:
>
> I think you're right about playing with the bare fd being too fragile. I think
>a simpler solution is to read say 1024 bytes at a time and buffer it
>internally.
Doesn't this suffer from a similar problem? Namely, external Python code
expecting the stream pointer to always be just past the object just read. See my
earlier comments pointing out that there's nowhere to store the buffer state
between successive calls to marshal.load. And the synchronising can be a problem
to achieve with non-seekable streams (including, but not limited to, sockets).
I'm not trying to be difficult. No, really! :-) |
|
Date |
User |
Action |
Args |
2011-06-19 23:04:53 | vinay.sajip | set | recipients:
+ vinay.sajip, georg.brandl, amaury.forgeotdarc, benjamin.peterson, Arfrever |
2011-06-19 23:04:53 | vinay.sajip | link | issue12291 messages |
2011-06-19 23:04:53 | vinay.sajip | create | |
|