Allright, so in the case of regular files I may content myself of
BufferedRandom.
And maybe I'll put some warnings concerning the returning of raw streams
by factory functions.
Thanks,
Regards,
Pascal
Guido van Rossum a écrit :
IIRC here is the use case for buffered reader/writer vs.
Not really, BufferedRandom is only suitable when the file is open for
reading *and* writing. The 'rb' and 'wb' modes should return
BufferedReader and BufferedWriter, respectively.
On Sat, Feb 20, 2010 at 6:20 AM, Pascal Chambon
chambon.pas...@gmail.com wrote:
Allright, so in the case of regular
Hello,
As I continue experimenting with advanced streams, I'm currently
beginning an important modification of io's Buffered and Text streams
(removal of locks, adding of methods...), to fit the optimization
process of the whole library.
However, I'm now wondering what the idea is behind the
IIRC here is the use case for buffered reader/writer vs. random: a
disk file opened for reading and writing uses a random access buffer;
but a TCP stream stream, while both writable and readable, should use
separate read and write buffers. The reader and writer don't have to
worry about reversing