Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 31320:ca4374662632 legacy-trunk
Add comment to mollify Tim.
| author | Jeremy Hylton <jeremy@alum.mit.edu> |
|---|---|
| date | Fri, 02 Jan 2004 23:25:32 +0000 |
| parents | 86fdf8fe7f17 |
| children | c4bae089bfc8 |
line wrap: on
line diff
--- a/Python/import.c Fri Jan 02 21:15:07 2004 +0000 +++ b/Python/import.c Fri Jan 02 23:25:32 2004 +0000 @@ -594,6 +594,8 @@ 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__",
