Right now it says: https://github.com/python/cpython/blob/e089f23bbbb27a84c6354147b99f7ec897ca9925/Lib/pathlib.py#L871-L876 This part is confusing: > Does not yield any result for the special paths '.' and '..' It might be understood as `Path('.').iterdir()` not yileding any results. I think, that it would be better to use the exact same wording as in docs: https://docs.python.org/3/library/pathlib.html#pathlib.Path.iterdir > the special entries '.' and '..' are not included. I will send a PR. <!-- gh-pr-number: gh-98833 --> * PR: gh-98833 <!-- /gh-pr-number -->
Activity
pythongh-98832: Change wording in `pathlib.Path.iterdir`
gh-98832: Change wording in docstring of `pathlib.Path.iterdir` (GH-9…
AlexWaygood commentedon Nov 9, 2022
Thanks @sobolevn!