classification
Title: bad example for os.stat
Type: Stage: patch review
Components: Documentation Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, harridu, wangjiahua
Priority: normal Keywords: patch

Created on 2021-09-06 11:54 by harridu, last changed 2021-11-29 14:05 by wangjiahua.

Pull Requests
URL Status Linked Edit
PR 29845 open wangjiahua, 2021-11-29 14:05
Messages (1)
msg401133 - (view) Author: Harri (harridu) Date: 2021-09-06 11:54
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.
History
Date User Action Args
2021-11-29 14:05:14wangjiahuasetkeywords: + patch
nosy: + wangjiahua

pull_requests: + pull_request28074
stage: patch review
2021-09-06 11:54:30harriducreate