]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-107801: Improve the accuracy of os.lseek docs (#107935) (#108137)
authorErlend E. Aasland <erlend@python.org>
Sat, 19 Aug 2023 13:06:36 +0000 (15:06 +0200)
committerGitHub <noreply@github.com>
Sat, 19 Aug 2023 13:06:36 +0000 (13:06 +0000)
commite0ca3424ad6736600ee850348c3bba05f0c05d4b
tree4feaaf552c7a26659b107801c266e039213c80d8
parent92a578409b70b5b9dabc9e55d4d13dd8239fe2f5
[3.11] gh-107801: Improve the accuracy of os.lseek docs (#107935) (#108137)

- name the last parameter *whence*, like it is for seek() methods on
  file objects
- add param docstrings
- structure the valid *whence* params

(cherry picked from commit dd4442c8f597af1ec3eaf20f7ad89c4ac7e2dbc9)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Doc/library/os.rst
Modules/clinic/posixmodule.c.h
Modules/posixmodule.c