[issue36411] Python 3 f.tell() gets out of sync with file pointer in binary append+read mode

PEW's Corner report at bugs.python.org
Fri May 24 02:06:41 EDT 2019


PEW's Corner <pewscorner at gmail.com> added the comment:

But buffers are used - and update tell() correctly - in all other cases than binary append+read mode (and even this case works in Python 2). Also, the implementation clearly tries to keep tell() updated irrespective of the buffer, so isn't it just a matter of reminding it to move the pointer to the end of the file when doing an append?

If that isn't feasible, then of course it would be good to document the problem in the description of tell().

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36411>
_______________________________________


More information about the Python-bugs-list mailing list