Giacomo Alzetta added the comment:

The documentation for python 3.3.1 states, at 
http://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files, 
states:

    f.tell() returns an integer giving the file object’s current position in 
the file, **measured in bytes from the beginning of the file**.

And regarding files opened in text mode the only statement is:

    In text files (those opened without a b in the mode string), only seeks 
relative to the beginning of the file are allowed (the exception being seeking 
to the very file end with seek(0, 2)).

Even though in the io module it is documented that it may not be the number of 
bytes.

I think the former documentation should be changed, since it's simply wrong. 
Sorry for the disturb, but in the beginning I thought it was related.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16273>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to