Kaydet (Commit) 7c85ab82 authored tarafından Guido van Rossum's avatar Guido van Rossum

Marc-Andre Lemburg discovered that the switch from .pyc to .pyo files,

done by _PyImport_Init(), comes to late to affect the import of
exceptions.py by _PyBuiltin_Init_2().  Move  _PyImport_Init() up few lines.
üst 3a4ceb70
...@@ -149,12 +149,12 @@ Py_Initialize() ...@@ -149,12 +149,12 @@ Py_Initialize()
PyDict_SetItemString(interp->sysdict, "modules", PyDict_SetItemString(interp->sysdict, "modules",
interp->modules); interp->modules);
_PyImport_Init();
/* phase 2 of builtins */ /* phase 2 of builtins */
_PyBuiltin_Init_2(interp->builtins); _PyBuiltin_Init_2(interp->builtins);
_PyImport_FixupExtension("__builtin__", "__builtin__"); _PyImport_FixupExtension("__builtin__", "__builtin__");
_PyImport_Init();
initsigs(); /* Signal handling stuff, including initintr() */ initsigs(); /* Signal handling stuff, including initintr() */
initmain(); /* Module __main__ */ initmain(); /* Module __main__ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment