[Python-Dev] empty string api for files

Scott David Daniels Scott.Daniels at Acm.Org
Sat Aug 27 23:08:08 CEST 2005


Raymond Hettinger wrote:
> We would use:
>     for block in f.readblocks(20):
>         . . .
What would be nice is a reader that allows a range
of bytes.  Often when you read a chunk, you don't care
about the exact size you get, example uses include the
re-blocking that makes reading from compressed data
sources unnecessarily inefficient.

--Scott David Daniels
Scott.Daniels at Acm.Org



More information about the Python-Dev mailing list