Eric V. Smith <e...@trueblade.com> added the comment: tell() is opaque when opening a text file: you can't interpret the output, its only use is for input to seek().
>From the docs >https://docs.python.org/3/tutorial/inputoutput.html#methods-of-file-objects: "f.tell() returns an integer giving the file object’s current position in the file represented as number of bytes from the beginning of the file when in binary mode and an opaque number when in text mode." Does the value returned from tell() not work in seek()? That would be the only bug here. ---------- nosy: +eric.smith _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39962> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com