[New-bugs-announce] [issue39906] pathlib.Path: add `follow_symlinks` argument to `stat()` and `chmod()`

Barney Gale report at bugs.python.org
Sun Mar 8 16:35:19 EDT 2020


New submission from Barney Gale <barney.gale at gmail.com>:

As of Python 3.3, `os.lstat()` and `os.lchmod()` are available as `os.stat(follow_symlinks=False)` and `os.chmod(follow_symlinks=False)`, but an equivalent change didn't make it into pathlib. I propose we add the  `follow_symlinks` argument to `Path.stat()` and `Path.chmod()` for consistency with `os` and because the new notation is arguable clearer for people who don't know many system calls off by heart :)

----------
components: Library (Lib)
messages: 363681
nosy: barneygale
priority: normal
severity: normal
status: open
title: pathlib.Path: add `follow_symlinks` argument to `stat()` and `chmod()`
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39906>
_______________________________________


More information about the New-bugs-announce mailing list