Mercurial > cpython-lru_cache-weakref
diff Python/dynload_dl.c @ 47580:94f64f11fdd0
Implement PEP 3121: new module initialization and finalization API.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Wed, 11 Jun 2008 05:26:20 +0000 |
| parents | 379fc66f4c96 |
| children | 0874698b1201 |
line wrap: on
line diff
--- a/Python/dynload_dl.c Wed Jun 11 03:41:00 2008 +0000 +++ b/Python/dynload_dl.c Wed Jun 11 05:26:20 2008 +0000 @@ -21,6 +21,6 @@ { char funcname[258]; - PyOS_snprintf(funcname, sizeof(funcname), "init%.200s", shortname); + PyOS_snprintf(funcname, sizeof(funcname), "PyInit_%.200s", shortname); return dl_loadmod(Py_GetProgramName(), pathname, funcname); }
