Vinay Sajip <vinay_sa...@yahoo.co.uk> added the comment: > Benjamin Peterson <benja...@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! :-) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12291> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com