]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38631: Replace compiler fatal errors with exceptions (GH-24369)
authorVictor Stinner <vstinner@python.org>
Sat, 30 Jan 2021 00:46:44 +0000 (01:46 +0100)
committerGitHub <noreply@github.com>
Sat, 30 Jan 2021 00:46:44 +0000 (01:46 +0100)
commitba7a99ddb52a45c8dec1f7e9f1648add0ace82ab
tree5a7b09325e6c2038ecc0a67e9354baf3ad7bc044
parent7fdab8331b90e1ffcedef05a006b6e72457b793a
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.
Misc/NEWS.d/next/Core and Builtins/2021-01-29-17-48-44.bpo-38631.jR-3kC.rst [new file with mode: 0644]
Python/compile.c