Message135834
| Author |
vstinner |
| Recipients |
barry, benjamin.peterson, genstein, georg.brandl, pitrou, vstinner |
| Date |
2011年05月12日.13:45:20 |
| SpamBayes Score |
0.008068898 |
| Marked as misclassified |
No |
| Message-id |
<1305207920.94.0.792352031022.issue12062@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
open("test.bin", "w+b", buffering=-1) creates a
BufferedRandom object. In the _pyio module, BufferedRandom overrides the write() method to "undo readahead", whereas the _io module reuses bufferedwriter_write() for bufferedrandom_methods and bufferedwriter_methods.
I suppose that the problem is "just" that _io.BufferedRandom.write() doesn't undo readahead. |
|