Mercurial > cpython-lru_cache-weakref
diff Python/pystate.c @ 28462:a8d6576b95af 2.2
Patch #710576: Implement per-interpreter-state codec registries.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sun, 30 Mar 2003 20:57:31 +0000 |
| parents | 63c6f45e947d |
| children |
line wrap: on
line diff
--- a/Python/pystate.c Sun Mar 30 20:31:49 2003 +0000 +++ b/Python/pystate.c Sun Mar 30 20:57:31 2003 +0000 @@ -50,6 +50,8 @@ interp->builtins = NULL; interp->checkinterval = 10; interp->tstate_head = NULL; + interp->codec_search_path = NULL; + interp->codec_search_cache = NULL; #ifdef HAVE_DLOPEN #ifdef RTLD_NOW interp->dlopenflags = RTLD_NOW; @@ -76,6 +78,8 @@ for (p = interp->tstate_head; p != NULL; p = p->next) PyThreadState_Clear(p); HEAD_UNLOCK(); + ZAP(interp->codec_search_path); + ZAP(interp->codec_search_cache); ZAP(interp->modules); ZAP(interp->sysdict); ZAP(interp->builtins);
