summaryrefslogtreecommitdiff
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorDino Viehland <dinov@microsoft.com>2017-06-21 14:44:36 -0700
committerYury Selivanov <yury@magic.io>2017-06-21 17:44:36 -0400
commitf3cffd2b7879d209f982de899b782fb89cfc410a (patch)
tree41c093d76571fc0e7676c0bb01980afc3029ed3f /Python/pystate.c
parentc90e96015085784df86632b26059b19c80cbfc97 (diff)
downloadcpython-git-f3cffd2b7879d209f982de899b782fb89cfc410a.tar.gz
bpo-30604: clean up co_extra support (#2144)
bpo-30604: port fix from 3.6 dropping binary compatibility tweaks
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index 0e62ee9203..24a08ebf4f 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -111,6 +111,7 @@ PyInterpreterState_New(void)
interp->importlib = NULL;
interp->import_func = NULL;
interp->eval_frame = _PyEval_EvalFrameDefault;
+ interp->co_extra_user_count = 0;
#ifdef HAVE_DLOPEN
#if HAVE_DECL_RTLD_NOW
interp->dlopenflags = RTLD_NOW;
@@ -281,7 +282,6 @@ new_threadstate(PyInterpreterState *interp, int init)
tstate->coroutine_wrapper = NULL;
tstate->in_coroutine_wrapper = 0;
- tstate->co_extra_user_count = 0;
tstate->async_gen_firstiter = NULL;
tstate->async_gen_finalizer = NULL;