Commit df86064
gh-146646: Document that glob functions suppress OSError
Document that glob.glob() and glob.iglob() silently suppress any
OSError exceptions raised while scanning the filesystem, such as
PermissionError when accessing directories without read permission.
The pathlib.Path.glob() docs already note this behavior (added in 3.13),
but the glob module docs did not mention it.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 7817651 commit df86064
File tree
2 files changed
+12
-0
lines changed- Doc/library
- Misc/NEWS.d/next/Documentation
2 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
| |||
106 | 111 | | |
107 | 112 | | |
108 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
109 | 119 | | |
110 | 120 | | |
111 | 121 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments