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.
V
Victor Stinner committed
a94c6b61aa5c09237b8105e5aee638cd54197b6f
Parent: 4a46adc
Committed by GitHub <noreply@github.com>
on 1/27/2020, 9:37:05 PM