]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38631: Replace Py_FatalError() with assert() in ceval.c (GH-18279)
authorVictor Stinner <vstinner@python.org>
Thu, 30 Jan 2020 11:20:48 +0000 (12:20 +0100)
committerGitHub <noreply@github.com>
Thu, 30 Jan 2020 11:20:48 +0000 (12:20 +0100)
commit17c68b8107e348aeaaa05f7ac5072cacff916022
tree31a937cee879bb5cf9c9433eecdb336da1ebf058
parentec3c99c8a73650d7833189bd973ec492564aa479
bpo-38631: Replace Py_FatalError() with assert() in ceval.c (GH-18279)

Replace a few Py_FatalError() calls if tstate is NULL with
assert(tstate != NULL) in ceval.c.

PyEval_AcquireThread(), PyEval_ReleaseThread() and
PyEval_RestoreThread() must never be called with a NULL tstate.
Doc/c-api/init.rst
Python/ceval.c