diff options
author | Barney Gale <barney.gale@gmail.com> | 2023-09-02 15:08:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-02 15:08:03 (GMT) |
commit | bdc3c884cdc90102ad68b6b55dc9b988e729ae35 (patch) | |
tree | df837954084737e01fc497f7f3091066f708b4db /Misc/NEWS.d/next | |
parent | 594b00057e667e0d8d4e41748be056cdd829e919 (diff) | |
download | cpython-bdc3c884cdc90102ad68b6b55dc9b988e729ae35.zip cpython-bdc3c884cdc90102ad68b6b55dc9b988e729ae35.tar.gz cpython-bdc3c884cdc90102ad68b6b55dc9b988e729ae35.tar.bz2 |
GH-78722: Raise exceptions from `pathlib.Path.iterdir()` without delay. (#107320)
`pathlib.Path.iterdir()` now immediately raises any `OSError`
exception from `os.listdir()`, rather than waiting until its
result is iterated over.
Diffstat (limited to 'Misc/NEWS.d/next')
-rw-r--r-- | Misc/NEWS.d/next/Library/2023-07-26-22-52-48.gh-issue-78722.6SKBLt.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-07-26-22-52-48.gh-issue-78722.6SKBLt.rst b/Misc/NEWS.d/next/Library/2023-07-26-22-52-48.gh-issue-78722.6SKBLt.rst new file mode 100644 index 0000000..aea26ee --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-07-26-22-52-48.gh-issue-78722.6SKBLt.rst @@ -0,0 +1,2 @@ +Fix issue where :meth:`pathlib.Path.iterdir` did not raise :exc:`OSError` +until iterated. |