summaryrefslogtreecommitdiffstats
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2016-09-07 18:16:41 (GMT)
committerBrett Cannon <brett@python.org>2016-09-07 18:16:41 (GMT)
commit5c4de2863b217338deb9a0fcd20b202b8647b366 (patch)
treebba5ca1d16f518125a5d2bfb4fe32a362f5527d5 /Python/pystate.c
parenta9296e7f3be4d6c22271b25c86467ff867c63bbb (diff)
downloadcpython-5c4de2863b217338deb9a0fcd20b202b8647b366.zip
cpython-5c4de2863b217338deb9a0fcd20b202b8647b366.tar.gz
cpython-5c4de2863b217338deb9a0fcd20b202b8647b366.tar.bz2
Add the co_extra field and accompanying APIs to code objects.
This completes PEP 523.
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 2ab5d5d..959354d 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -227,6 +227,7 @@ new_threadstate(PyInterpreterState *interp, int init)
tstate->coroutine_wrapper = NULL;
tstate->in_coroutine_wrapper = 0;
+ tstate->co_extra_user_count = 0;
if (init)
_PyThreadState_Init(tstate);