[Python-3000] On PEP 3116: new I/O base classes
Bill Janssen
janssen at parc.com
Thu Jun 21 02:46:42 CEST 2007
> goto(pos) # absolute
>
> move(incr:int) # relative to current position
>
> negative numbers can be interpreted naturally; for move they go
> backwards, and for goto they count from the end.
>
> This would require either a length, or a special value (None?) for at
> least one of Start and End, because 0 == -0.
I like this idea. Define START and END as values in the "file" class.
> I'm not sure exactly how unicode
> characters even should be counted, without a normalization promise.
No one's sure. That's why "read(N: int) => str" doesn't make sense.
Bill
More information about the Python-3000
mailing list