[Python-3000] iostack and sock2
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue Jun 6 02:32:51 CEST 2006
tomer filiba wrote:
> okay, i give up on read(n) returning n bytes.
An idea I had about this some time ago was that read()
could be callable with two arguments:
f.read(min_bytes, max_bytes)
The two variations we're considering would then be special
cases of this:
f.read(0, num_bytes) # current read() behaviour
f.read(num_bytes, num_bytes) # record-oriented read() behaviour
--
Greg
More information about the Python-3000
mailing list