Message367981
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). |
|
| Date |
User |
Action |
Args |
| 2020-05-03 16:36:28 | facundobatista | set | recipients:
+ facundobatista, docs@python |
| 2020-05-03 16:36:28 | facundobatista | set | messageid: <1588523788.71.0.846056751312.issue40486@roundup.psfhosted.org> |
| 2020-05-03 16:36:28 | facundobatista | link | issue40486 messages |
| 2020-05-03 16:36:28 | facundobatista | create | |
|