[Python-3000] revamping the io stack, part 2

Liu Jin m.liu.jin at gmail.com
Thu May 4 07:18:18 CEST 2006


>>>>> "tomer" == tomer filiba <tomerfiliba at gmail.com> writes:
    > read(x) guarantees to return x bytes, or EOFError otherwise (and
    > also restoing the stream position).

This would require arbitrarily large buffer for a socket stream.  I'm
unsure if that's desiable.  Maybe you could move the buffering up to
a reader and leave the basic stream interface unbuffered (i.e. no
backrolling)?


More information about the Python-3000 mailing list