[Python-3000] On PEP 3116: new I/O base classes
Christian Heimes
lists at cheimes.de
Wed Jun 20 19:45:40 CEST 2007
Bill Janssen wrote:
> Not bad, but if you're going that route, I think I'd get rid of the
> optional arguments, and just say
>
> seek_from_beginning(INCR: int)
>
> seek_from_current(INCR: int)
>
> seek_from_end(DECR: int)
I don't like it. It's too noisy and too much to type. My mini proposal
has the benefit that it is backward compatible.
Besides your arguments names aren't correct. seek_from_current can be
negative to seek backward and seek_from_end can be positive to enlarge a
file. On some OS a seek after EOF creates a sparse file.
More information about the Python-3000
mailing list