[issue36111] Negative `offset` values are no longer acceptable with implementation of `seek` with python3 when in text mode; should be per POSIX

Enji Cooper report at bugs.python.org
Mon Feb 25 19:29:37 EST 2019


Enji Cooper <yaneurabeya at gmail.com> added the comment:

Opening and seeking using SEEK_END worked in text mode with python 2.7. I'm not terribly sure why 3.x should depart from this behavior:

>>> fp = open("configure", "rt"); fp.seek(-100, os.SEEK_END)
>>> fp.tell()
501076

----------

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


More information about the Python-bugs-list mailing list