diff Python/sysmodule.c @ 49613:efef5fc45a9a

Issue 3723: Fixed initialization of subinterpreters The patch fixes several issues with Py_NewInterpreter as well as the demo for multiple subinterpreters. Most of the patch was written by MvL with help from Benjamin, Amaury and me. Graham Dumpleton has verified that this patch fixes an issue with mod_wsgi.
author Christian Heimes <christian@cheimes.de>
date Thu, 30 Oct 2008 21:48:26 +0000
parents 2c3a6c9dff62
children bd2fb1be130e e8154bd322cb
line wrap: on
line diff
--- a/Python/sysmodule.c	Thu Oct 30 21:40:04 2008 +0000
+++ b/Python/sysmodule.c	Thu Oct 30 21:48:26 2008 +0000
@@ -1231,7 +1231,7 @@
 	PyModuleDef_HEAD_INIT,
 	"sys",
 	sys_doc,
-	0,
+	-1, /* multiple "initialization" just copies the module dict. */
 	sys_methods,
 	NULL,
 	NULL,