Commit 62c7015
authored
PyImport_GetImporter() now sets RuntimeError if it fails to get sys.path_hooks
or sys.path_importer_cache or they are not list and dict correspondingly.
Previously it could return NULL without setting error in obscure cases,
crash or raise SystemError if these attributes have wrong type.
1 parent b8d1744 commit 62c7015
File tree
2 files changed
+26
-5
lines changed- Misc/NEWS.d/next/C API
- Python
2 files changed
+26
-5
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2363 | 2363 | | |
2364 | 2364 | | |
2365 | 2365 | | |
2366 | | - | |
2367 | | - | |
2368 | | - | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
2369 | 2374 | | |
2370 | 2375 | | |
2371 | 2376 | | |
| |||
2408 | 2413 | | |
2409 | 2414 | | |
2410 | 2415 | | |
| 2416 | + | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
| 2420 | + | |
2411 | 2421 | | |
2412 | | - | |
| 2422 | + | |
| 2423 | + | |
| 2424 | + | |
2413 | 2425 | | |
2414 | 2426 | | |
2415 | | - | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
2416 | 2432 | | |
2417 | 2433 | | |
2418 | 2434 | | |
| |||
0 commit comments