Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb9b39b commit 9a68f8cCopy full SHA for 9a68f8c
1 file changed
Python/pythonrun.c
@@ -217,6 +217,9 @@ Py_InitializeEx(int install_sigs)
217
Py_FatalError("Py_Initialize: can't initialize builtins dict");
218
Py_INCREF(interp->builtins);
219
220
+ /* initialize builtin exceptions */
221
+ _PyExc_Init();
222
+
223
sysmod = _PySys_Init();
224
if (sysmod == NULL)
225
Py_FatalError("Py_Initialize: can't initialize sys");
@@ -239,9 +242,6 @@ Py_InitializeEx(int install_sigs)
239
242
240
243
_PyImport_Init();
241
244
- /* initialize builtin exceptions */
- _PyExc_Init();
-
245
/* phase 2 of builtins */
246
_PyImport_FixupExtension("__builtin__", "__builtin__");
247
0 commit comments