]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-107801: Improve the accuracy of io.TextIOWrapper.seek docs (#107933) (...
authorErlend E. Aasland <erlend@python.org>
Tue, 22 Aug 2023 10:01:38 +0000 (12:01 +0200)
committerGitHub <noreply@github.com>
Tue, 22 Aug 2023 10:01:38 +0000 (12:01 +0200)
commitef4d427fd8ed89fcfb5a0fada4c24abec12991e5
tree2daf8f740526f8c518fa7325c10e3c1d0301c392
parentdd73f2f76ab1eabe92a2ca820430be723df31cde
[3.12] gh-107801: Improve the accuracy of io.TextIOWrapper.seek docs (#107933) (#108262)

(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