Author vstinner
Recipients barry, benjamin.peterson, genstein, georg.brandl, pitrou, vstinner
Date 2011-05-12.13:45:20
SpamBayes Score 0.0080689
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.
History
Date User Action Args
2011-05-12 13:45:21vstinnersetrecipients: + vstinner, barry, georg.brandl, pitrou, benjamin.peterson, genstein
2011-05-12 13:45:20vstinnersetmessageid: <1305207920.94.0.792352031022.issue12062@psf.upfronthosting.co.za>
2011-05-12 13:45:20vstinnerlinkissue12062 messages
2011-05-12 13:45:20vstinnercreate