summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-01-27 22:37:05 +0100
committerGitHub <noreply@github.com>2020-01-27 22:37:05 +0100
commita94c6b61aa5c09237b8105e5aee638cd54197b6f (patch)
treeed5a216fbd3bee7050dfec1b18fd029a57a1f887 /Python
parent4a46adc7746930c4589ee483cad88d3f8504c045 (diff)
downloadcpython-git-a94c6b61aa5c09237b8105e5aee638cd54197b6f.tar.gz
bpo-38631: Avoid Py_FatalError() in PyModule_Create2() (GH-18212)
If PyModule_Create2() is called when the Python import machinery is not initialized, it now raises a SystemError and returns NULL, instead of calling Py_FatalError() which aborts the process. The caller must be prepared to handle NULL anyway.
Diffstat (limited to 'Python')
0 files changed, 0 insertions, 0 deletions