]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-107801: Improve the accuracy of os.lseek docs (#107935) (#108136)
authorErlend E. Aasland <erlend@python.org>
Sat, 19 Aug 2023 23:05:00 +0000 (01:05 +0200)
committerGitHub <noreply@github.com>
Sat, 19 Aug 2023 23:05:00 +0000 (01:05 +0200)
commit41634edb2b54f488aac286b938a3590f5dac154c
treecf76d7a5eaec139cff8fd745bcd15c04ea83c8fa
parent28074306578fb7e67667ee64cd7d66509d63c21c
[3.12] gh-107801: Improve the accuracy of os.lseek docs (#107935) (#108136)

- 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