summaryrefslogtreecommitdiff
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-10-30 21:48:26 +0000
committerChristian Heimes <christian@cheimes.de>2008-10-30 21:48:26 +0000
commit84213ad540d677ce759458f2b536e1acfbef601a (patch)
tree26d21664cfcbdb13ecf302ac89fa916d6ae02bc0 /Python/pystate.c
parent6c83e3da5f20ef73db1306e6ae3ac0acdf557f52 (diff)
downloadcpython-84213ad540d677ce759458f2b536e1acfbef601a.tar.gz
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.
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index 9479256718..2a9b7443f9 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -76,6 +76,7 @@ PyInterpreterState_New(void)
interp->codec_search_path = NULL;
interp->codec_search_cache = NULL;
interp->codec_error_registry = NULL;
+ interp->codecs_initialized = 0;
#ifdef HAVE_DLOPEN
#ifdef RTLD_NOW
interp->dlopenflags = RTLD_NOW;