diff Python/pythonrun.c @ 11113:be8ec828c072 legacy-trunk

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.
author Guido van Rossum <guido@python.org>
date Thu, 08 Jul 1999 17:26:56 +0000
parents a4a268b725b2
children 5e6e9e893acd
line wrap: on
line diff
--- a/Python/pythonrun.c	Wed Jul 07 14:04:38 1999 +0000
+++ b/Python/pythonrun.c	Thu Jul 08 17:26:56 1999 +0000
@@ -149,12 +149,12 @@
 	PyDict_SetItemString(interp->sysdict, "modules",
 			     interp->modules);
 
+	_PyImport_Init();
+
 	/* phase 2 of builtins */
 	_PyBuiltin_Init_2(interp->builtins);
 	_PyImport_FixupExtension("__builtin__", "__builtin__");
 
-	_PyImport_Init();
-
 	initsigs(); /* Signal handling stuff, including initintr() */
 
 	initmain(); /* Module __main__ */