[Python-ideas] file API

MRAB python at mrabarnett.plus.com
Fri Sep 28 04:43:15 CEST 2012

On 2012-09-28 03:07, Greg Ewing wrote:
> Jim Jewett wrote:
>> For text files, I would expect it to be a character count rather than
>> a byte count.  So this particular proposal might end up adding as much
>> confusion as it hopes to remove.
> I'm given to understand that the file positions used by
> the C standard library are supposed to be treated as
> opaque tokens -- you're not guaranteed to be able to
> perform arithmetic on them.
Yet you're allowed to do relative seeks? Does that mean that the file
position basically works with some undefined units (bytes, characters,

More information about the Python-ideas mailing list