]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-107801: Improve the accuracy of io.TextIOWrapper.seek docs (#107933)
authorErlend E. Aasland <erlend@python.org>
Tue, 22 Aug 2023 07:37:53 +0000 (09:37 +0200)
committerGitHub <noreply@github.com>
Tue, 22 Aug 2023 07:37:53 +0000 (09:37 +0200)
commit7f87ebbc3f52680c939791f397b9a478edf0c8d4
tree146c36de3401852fa5bcf7630cb5ac236ef7b8a1
parent58f9c635002673e35a56eeaa122cade7a2b6bae1
gh-107801: Improve the accuracy of io.TextIOWrapper.seek docs (#107933)

Clearly document the supported seek() operations:

- Rewind to the start of the stream
- Restore a previous stream position (given by tell())
- Fast-forward to the end of the stream
Doc/library/io.rst
Modules/_io/clinic/textio.c.h
Modules/_io/textio.c