[issue45114] bad example for os.stat
New submission from Harri <harri@afaics.de>: The example on https://docs.python.org/3/library/stat.html should be improved to avoid endless recursion, if there is a symlink loop. I would suggest to use os.lstat instead of os.stat. ---------- assignee: docs@python components: Documentation messages: 401133 nosy: docs@python, harridu priority: normal severity: normal status: open title: bad example for os.stat versions: Python 3.9 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue45114> _______________________________________
Change by jiahua wang <wjh180909@gmail.com>: ---------- keywords: +patch nosy: +wangjiahua nosy_count: 2.0 -> 3.0 pull_requests: +28074 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29845 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue45114> _______________________________________
Jelle Zijlstra <jelle.zijlstra@gmail.com> added the comment: New changeset c93a0ac6972221787d8bea1c41a9feb667ed3d2c by 180909 in branch 'main': bpo-45114: Use lstat() instead of stat() in stat docs example (GH-29845) https://github.com/python/cpython/commit/c93a0ac6972221787d8bea1c41a9feb667e... ---------- nosy: +JelleZijlstra _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue45114> _______________________________________
Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>: ---------- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +30333 pull_request: https://github.com/python/cpython/pull/32267 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue45114> _______________________________________
Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>: ---------- pull_requests: +30334 pull_request: https://github.com/python/cpython/pull/32268 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue45114> _______________________________________
Change by Jelle Zijlstra <jelle.zijlstra@gmail.com>: ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue45114> _______________________________________
miss-islington <mariatta.wijaya+miss-islington@gmail.com> added the comment: New changeset 23c0200c436714a3f9b38d5e6cac230ceacd4c43 by Miss Islington (bot) in branch '3.10': bpo-45114: Use lstat() instead of stat() in stat docs example (GH-29845) https://github.com/python/cpython/commit/23c0200c436714a3f9b38d5e6cac230ceac... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue45114> _______________________________________
miss-islington <mariatta.wijaya+miss-islington@gmail.com> added the comment: New changeset dc9322a91d48c80afe8329bb509673a2f74fb925 by Miss Islington (bot) in branch '3.9': bpo-45114: Use lstat() instead of stat() in stat docs example (GH-29845) https://github.com/python/cpython/commit/dc9322a91d48c80afe8329bb509673a2f74... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue45114> _______________________________________
participants (4)
-
Harri
-
Jelle Zijlstra
-
jiahua wang
-
miss-islington