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 _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
