[Python-3000] On PEP 3116: new I/O base classes
Bill Janssen
janssen at parc.com
Thu Jun 21 02:49:47 CEST 2007
Christian Heimes wrote:
> 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.
Well, it would be noisy, and the complaint about length would apply,
if these were widely used many times in one piece of code, but they
aren't. So that doesn't matter, and in its favor, it's clear,
consistent, and easy to remember.
Bill
More information about the Python-3000
mailing list