Message138631
2011/6/19 Vinay Sajip <report@bugs.python.org>:
>
> Vinay Sajip <vinay_sajip@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(). |
|
Date |
User |
Action |
Args |
2011-06-19 14:54:54 | benjamin.peterson | set | recipients:
+ benjamin.peterson, georg.brandl, vinay.sajip, amaury.forgeotdarc, Arfrever |
2011-06-19 14:54:54 | benjamin.peterson | link | issue12291 messages |
2011-06-19 14:54:54 | benjamin.peterson | create | |
|