gh-107801: Improve the accuracy of os.lseek docs#107935
gh-107801: Improve the accuracy of os.lseek docs#107935erlend-aasland merged 8 commits intopython:mainfrom
Conversation
- name the last parameter *whence*, like it is for seek() methods on file objects - add param docstrings - structure the valid *whence* values as a list
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
serhiy-storchaka
left a comment
There was a problem hiding this comment.
See my comment in #107936 (review). These changes are not independent and should be considered in one PR.
I think it is fine to document constants in one PR and update the docs of the function in another PR. Documenting the constants also unlock my draft PR to clean up the Sphinx warnings in Lib/library/os.rst. |
|
I'll hold this until #107936 has landed. |
|
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 |
|
GH-108136 is a backport of this pull request to the 3.12 branch. |
|
GH-108137 is a backport of this pull request to the 3.11 branch. |
file objects
📚 Documentation preview 📚: https://cpython-previews--107935.org.readthedocs.build/