]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add comment to mollify Tim.
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 2 Jan 2004 23:25:32 +0000 (23:25 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 2 Jan 2004 23:25:32 +0000 (23:25 +0000)
Python/import.c

index 77a5605fe0fd8b5f4a2927d2e0d6538e1cbd0175..e6ea3dd0a958c0c531d3a47530b5768fe2fa4466 100644 (file)
@@ -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__",