file position *tell()* works different

M-a-S NO-MAIL at hotmail.com
Fri Sep 19 18:20:30 EDT 2003


"Eric Brunel" <eric.brunel at pragmadev.N0SP4M.com> wrote in message news:bkemib$bjr$1 at news-reader2.wanadoo.fr...
> Sorry, but no you can't: the default is to open the file in text mode, and you
> can change it with a 'b', but 't' has no meaning at all. BTW, 'b' also has no
> meaning at all on all Unices: the so-called "binary" or "text" mode are the
> same, i.e. what is read is what is in the file. Windows needs it only because of
> its superfluous \r's at the end of each line.
> <...>
> HTH
> -- 
> - Eric Brunel <eric dot brunel at pragmadev dot com> -
> PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com


The idea was to tell the humans that it's text. It won't hurt neither Unix nor Windows.
I know that nobody cares, though.

M-a-S






More information about the Python-list mailing list