[New-bugs-announce] [issue45114] bad example for os.stat

Harri report at bugs.python.org
Mon Sep 6 07:54:30 EDT 2021

New submission from Harri <harri at 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 at python
components: Documentation
messages: 401133
nosy: docs at python, harridu
priority: normal
severity: normal
status: open
title: bad example for os.stat
versions: Python 3.9

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list