Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 2724:6a9ecb05c679 legacy-trunk
Check if we've already loaded a dynamic module under a different name.
| author | Sjoerd Mullender <sjoerd@acm.org> |
|---|---|
| date | Mon, 12 Jun 1995 15:51:34 +0000 |
| parents | 42b5689a7409 |
| children | 9516bad97961 |
line wrap: on
line diff
--- a/Python/import.c Fri Jun 09 20:56:31 1995 +0000 +++ b/Python/import.c Mon Jun 12 15:51:34 1995 +0000 @@ -487,7 +487,7 @@ break; case C_EXTENSION: - m = load_dynamic_module(name, buf); + m = load_dynamic_module(name, buf, fp); break; #ifdef macintosh @@ -868,7 +868,7 @@ object *dummy; if (!newgetargs(args, "ss|O", &name, &pathname, &dummy)) return NULL; - return load_dynamic_module(name, pathname); + return load_dynamic_module(name, pathname, NULL); } static object *
