This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author facundobatista
Recipients docs@python, facundobatista
Date 2020-05-03.16:36:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588523788.71.0.846056751312.issue40486@roundup.psfhosted.org>
In-reply-to
Content
Documentation for Path.iterdir ( https://docs.python.org/3/library/pathlib.html#pathlib.Path.iterdir ) doesn't specify what happens when the directory change.

This is important, as the function does NOT return a list (which would imply that a "snapshot" of the directory will be returned).

Also, it's not only relevant what would happen if somebody else changes the directory after the iteration is started (will that change be reflected?) but also if it's ALLOWED for the same code that iterates the dir content to change it (or problems would arise, like when changing a dictionary while being iterated).
History
Date User Action Args
2020-05-03 16:36:28facundobatistasetrecipients: + facundobatista, docs@python
2020-05-03 16:36:28facundobatistasetmessageid: <1588523788.71.0.846056751312.issue40486@roundup.psfhosted.org>
2020-05-03 16:36:28facundobatistalinkissue40486 messages
2020-05-03 16:36:28facundobatistacreate