[issue29092] Sync os.stat's doc and doc string

New submission from Xiang Zhang: The accepted types of parameter *path* are different between os.stat's doc and doc string. In doc, it mentions Pathlike, string and file descriptor. In doc string, it mentions string, bytes and file descriptor. (3.5 only lack bytes in doc). ---------- assignee: docs@python components: Documentation files: doc-os-stat.patch keywords: patch messages: 284167 nosy: docs@python, xiang.zhang priority: normal severity: normal stage: patch review status: open title: Sync os.stat's doc and doc string versions: Python 3.5, Python 3.6, Python 3.7 Added file: http://bugs.python.org/file46061/doc-os-stat.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue29092> _______________________________________

STINNER Victor added the comment: It's a recent change, before path type was always str. ---------- nosy: +haypo, serhiy.storchaka _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue29092> _______________________________________

STINNER Victor added the comment: Ignore my comment, I was thinking to something else (recent os.scandir change on Windows). ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue29092> _______________________________________

Roundup Robot added the comment: New changeset 1f30e114cbc8 by Xiang Zhang in branch '3.5': Issue #29092: Sync os.stat's doc and docstring on path type. https://hg.python.org/cpython/rev/1f30e114cbc8 New changeset 409ffea5cccf by Xiang Zhang in branch '3.6': Issue #29092: Sync os.stat's doc and docstring on path type. https://hg.python.org/cpython/rev/409ffea5cccf New changeset cee9d322178f by Xiang Zhang in branch 'default': Issue #29092: Merge 3.6. https://hg.python.org/cpython/rev/cee9d322178f ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue29092> _______________________________________

Changes by Xiang Zhang <angwerzx@126.com>: ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue29092> _______________________________________
participants (3)
-
Roundup Robot
-
STINNER Victor
-
Xiang Zhang