diff options
author | Victor Stinner <vstinner@python.org> | 2021-01-30 01:46:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-30 01:46:44 +0100 |
commit | ba7a99ddb52a45c8dec1f7e9f1648add0ace82ab (patch) | |
tree | 5a7b09325e6c2038ecc0a67e9354baf3ad7bc044 /Misc | |
parent | Fix a reference leak in the compiler for compiler_lambda() (GH-24382) (diff) | |
download | cpython-ba7a99ddb52a45c8dec1f7e9f1648add0ace82ab.tar.gz cpython-ba7a99ddb52a45c8dec1f7e9f1648add0ace82ab.tar.bz2 cpython-ba7a99ddb52a45c8dec1f7e9f1648add0ace82ab.zip |
bpo-38631: Replace compiler fatal errors with exceptions (GH-24369)
* Replace Py_FatalError() calls with regular SystemError exceptions.
* compiler_exit_scope() calls _PyErr_WriteUnraisableMsg() to log the
PySequence_DelItem() failure.
* compiler_unit_check() uses _PyMem_IsPtrFreed().
* compiler_make_closure(): remove "(reftype == FREE)" comment since
reftype can also be LOCAL or GLOBAL_EXPLICIT.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2021-01-29-17-48-44.bpo-38631.jR-3kC.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2021-01-29-17-48-44.bpo-38631.jR-3kC.rst b/Misc/NEWS.d/next/Core and Builtins/2021-01-29-17-48-44.bpo-38631.jR-3kC.rst new file mode 100644 index 00000000000..485607e6612 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2021-01-29-17-48-44.bpo-38631.jR-3kC.rst @@ -0,0 +1,2 @@ +Replace :c:func:`Py_FatalError` calls in the compiler with regular +:exc:`SystemError` exceptions. Patch by Victor Stinner. |