[docs] [issue33932] Calling Py_Initialize() twice now triggers a fatal error (Python 3.7)
STINNER Victor
report at bugs.python.org
Thu Jun 21 09:35:14 EDT 2018
STINNER Victor <vstinner at redhat.com> added the comment:
The behaviour changed has been introduced by bpo-22257:
commit 1abcf6700b4da6207fe859de40c6c1bada6b4fec
Author: Eric Snow <ericsnowcurrently at gmail.com>
Date: Tue May 23 21:46:51 2017 -0700
bpo-22257: Private C-API for core runtime initialization (PEP 432). (#1772)
(patch by Nick Coghlan)
Simplified change:
- if (initialized)
- return;
- initialized = 1;
+ if (_Py_Initialized) {
+ Py_FatalError("Py_InitializeCore: main interpreter already initialized");
+ }
----------
components: +Interpreter Core -Documentation
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33932>
_______________________________________
More information about the docs
mailing list