[Python-3000] iostack, second revision
Jack Diederich
jackdied at jackdied.com
Sat Sep 9 01:26:04 CEST 2006
On Sat, Sep 09, 2006 at 12:24:10AM +0200, Antoine Pitrou wrote:
> Le vendredi 08 septembre 2006 ? 15:04 -0400, Jim Jewett a ?crit :
> > > What about seek(), seek_relative() and seek_reverse() ?
> >
> > Why not just borrow the standard symbolic names of cur and end?
> >
> > seek(pos=0)
> > seek_cur(pos=0)
> > seek_end(pos=0)
I like the C-ish style because I'm used to it. These are OK so
long as seek(n, 2) raises an informative exception. I was initially
going to suggest seek_abs() for the absolute seek but if it remains
plain seek() old users won't have to go searching docs and help()
would be .. helpful.
-Jack
More information about the Python-3000
mailing list