Benjamin Peterson <benja...@python.org> added the comment:

2011/6/19 Vinay Sajip <rep...@bugs.python.org>:
>
> Vinay Sajip <vinay_sa...@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 <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

Reply via email to