This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author benjamin.peterson
Recipients Arfrever, amaury.forgeotdarc, benjamin.peterson, georg.brandl, vinay.sajip
Date 2011-06-19.14:54:54
SpamBayes Score 0.0037059665
Marked as misclassified No
Message-id <BANLkTi=t1PaUdmDOj97NuvpCP+DyLMgLkQ@mail.gmail.com>
In-reply-to <1308483551.26.0.94674905556.issue12291@psf.upfronthosting.co.za>
Content
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().
History
Date User Action Args
2011-06-19 14:54:54benjamin.petersonsetrecipients: + benjamin.peterson, georg.brandl, vinay.sajip, amaury.forgeotdarc, Arfrever
2011-06-19 14:54:54benjamin.petersonlinkissue12291 messages
2011-06-19 14:54:54benjamin.petersoncreate