diff Python/dynload_shlib.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 6149483f7a3d
children cab14be0ada1
line wrap: on
line diff
--- a/Python/dynload_shlib.c	Wed Jun 11 03:41:00 2008 +0000
+++ b/Python/dynload_shlib.c	Wed Jun 11 05:26:20 2008 +0000
@@ -82,7 +82,7 @@
 	}
 
 	PyOS_snprintf(funcname, sizeof(funcname), 
-		      LEAD_UNDERSCORE "init%.200s", shortname);
+		      LEAD_UNDERSCORE "PyInit_%.200s", shortname);
 
 	if (fp != NULL) {
 		int i;