]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-107801: Improve the accuracy of io.TextIOWrapper.seek docs (#107933) (...
authorErlend E. Aasland <erlend@python.org>
Tue, 22 Aug 2023 08:19:56 +0000 (10:19 +0200)
committerGitHub <noreply@github.com>
Tue, 22 Aug 2023 08:19:56 +0000 (08:19 +0000)
commitcc42182c978cf9e304c1b03f94486c0a0785a477
treeeb46a129d96df76126826b8c67b3d7f6658d6858
parent4d4871e715737bf699cf9773e275c7993ae13779
[3.11] gh-107801: Improve the accuracy of io.TextIOWrapper.seek docs (#107933) (#108264)

(cherry picked from commit 7f87ebbc3f52680c939791f397b9a478edf0c8d4)

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