[New-bugs-announce] [issue41141] remove unneeded handling of '.' and '..' from patlib.Path.iterdir()
Sergey Fedoseev
report at bugs.python.org
Sat Jun 27 09:07:24 EDT 2020
New submission from Sergey Fedoseev <fedoseev.sergey at gmail.com>:
Currently patlib.Path.iterdir() filters out '.' and '..'.
It's unneeded since patlib.Path.iterdir() uses os.listdir() under the hood, which returns neither '.' nor '..'.
https://docs.python.org/3/library/os.html#os.listdir
----------
components: Library (Lib)
messages: 372465
nosy: sir-sigurd
priority: normal
severity: normal
status: open
title: remove unneeded handling of '.' and '..' from patlib.Path.iterdir()
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41141>
_______________________________________
More information about the New-bugs-announce
mailing list