-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-107801: Improve the accuracy of io.TextIOWrapper.seek docs #107933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-107801: Improve the accuracy of io.TextIOWrapper.seek docs #107933
Conversation
Clearly document the supported seek() operations: - Rewind to the start of the stream - Restore a previous strema position (given by tell()) - Fast-forward to the end of the stream
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this presentational approach, I think it's a significant improvement over the status quo!
A
Thanks for the reviews, Antoine and Adam; highly appreciated. I think we're almost there, but I don't like the repetition in the summary sentence. I thought of changing it to "Set and return ...", but perhaps that is not accurate enough. |
It seems the review comments of @pitrou have been addressed. I'll land this next week. |
Thanks @erlend-aasland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, @erlend-aasland, I could not cleanly backport this to |
Sorry, @erlend-aasland, I could not cleanly backport this to |
I will create a follow-up PR for documenting |
GH-108262 is a backport of this pull request to the 3.12 branch. |
… docs (python#107933) (cherry picked from commit 7f87ebb) 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
… docs (python#107933) (cherry picked from commit 7f87ebb) 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
GH-108264 is a backport of this pull request to the 3.11 branch. |
Clearly document the supported seek() operations:
📚 Documentation preview 📚: https://cpython-previews--107933.org.readthedocs.build/