This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients EcmaXp_, martin.panter, vstinner
Date 2016-01-05.20:20:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452025223.53.0.708427167737.issue26016@psf.upfronthosting.co.za>
In-reply-to
Content
The documentation for tell() <https://docs.python.org/3/library/io.html#io.TextIOBase.tell> says that it returns an opaque number. Depending on the codec used, it might have to record the state of the text decoder, CRLF decoder, byte position, etc, all in that number. So I don’t think the return value being large is a bug.

Perhaps the change in behaviour from Python 2 is due to Issue 11114. Also, Issue 25849 was recently opened about text file seeking.
History
Date User Action Args
2016-01-05 20:20:23martin.pantersetrecipients: + martin.panter, vstinner, EcmaXp_
2016-01-05 20:20:23martin.pantersetmessageid: <1452025223.53.0.708427167737.issue26016@psf.upfronthosting.co.za>
2016-01-05 20:20:23martin.panterlinkissue26016 messages
2016-01-05 20:20:23martin.pantercreate