Commit f459c4b
committed
gh-151763: Restore exception if parser recovery path leaves none set
After the diagnostic second parse pass, call PyErr_NoMemory() when no
exception is set so callers do not hit _Py_CheckFunctionResult fatals
(OOM-0021).1 parent f5f5059 commit f459c4b
2 files changed
Lines changed: 8 additions & 1 deletion
File tree
- Misc/NEWS.d/next/Core_and_Builtins
- Parser
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1026 | 1026 | | |
1027 | 1027 | | |
1028 | 1028 | | |
1029 | | - | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
1030 | 1035 | | |
1031 | 1036 | | |
1032 | 1037 | | |
| |||
0 commit comments