summaryrefslogtreecommitdiffstats
path: root/Objects/structseq.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-01-27 21:37:05 (GMT)
committerGitHub <noreply@github.com>2020-01-27 21:37:05 (GMT)
commita94c6b61aa5c09237b8105e5aee638cd54197b6f (patch)
treeed5a216fbd3bee7050dfec1b18fd029a57a1f887 /Objects/structseq.c
parent4a46adc7746930c4589ee483cad88d3f8504c045 (diff)
downloadcpython-a94c6b61aa5c09237b8105e5aee638cd54197b6f.zip
cpython-a94c6b61aa5c09237b8105e5aee638cd54197b6f.tar.gz
cpython-a94c6b61aa5c09237b8105e5aee638cd54197b6f.tar.bz2
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 'Objects/structseq.c')
0 files changed, 0 insertions, 0 deletions