From: Jeremy Hylton Date: Fri, 2 Jan 2004 23:25:32 +0000 (+0000) Subject: Add comment to mollify Tim. X-Git-Tag: v2.4a1~994 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ecd9129c94318135b38578f896d00f895f1b231a;p=thirdparty%2FPython%2Fcpython.git Add comment to mollify Tim. --- diff --git a/Python/import.c b/Python/import.c index 77a5605fe0fd..e6ea3dd0a958 100644 --- a/Python/import.c +++ b/Python/import.c @@ -594,6 +594,8 @@ PyImport_ExecCodeModuleEx(char *name, PyObject *co, char *pathname) m = PyImport_AddModule(name); if (m == NULL) return NULL; + /* If the module is being reloaded, we get the old module back + and re-use its dict to exec the new code. */ d = PyModule_GetDict(m); if (PyDict_GetItemString(d, "__builtins__") == NULL) { if (PyDict_SetItemString(d, "__builtins__",