[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

Benjamin Peterson report at bugs.python.org
Sun Jun 19 16:54:54 CEST 2011


Benjamin Peterson <benjamin at python.org> added the comment:

2011/6/19 Vinay Sajip <report at bugs.python.org>:
>
> Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:
>
> The problem with calling fileno() and fdopen() is that you bypass the buffering information held in BufferedIOReader. The first call works, but the FILE * pointer is now positioned at 4K, rather than just past the end of the object just read. The next call fails.

But presumably once you have the fd, you can llseek().

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12291>
_______________________________________


More information about the Python-bugs-list mailing list