[Python-3000] iostack and sock2
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue Jun 6 15:30:55 CEST 2006
Marcin 'Qrczak' Kowalczyk wrote:
> Greg Ewing <greg.ewing at canterbury.ac.nz> writes:
>> f.read(0, num_bytes) # current read() behaviour
>
> Current read() reads at least 1 byte.
Except if EOF is reached before getting any bytes.
In that case, if min_bytes is 0, the call simply
returns 0 bytes. If min_bytes is greater than
0, it raises EOFError.
--
Greg
More information about the Python-3000
mailing list