Message138631
| 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(). |
|