Add the co_extra field and accompanying APIs to code objects.

This completes PEP 523.
This commit is contained in:
Brett Cannon 2016-09-07 11:16:41 -07:00
parent a9296e7f3b
commit 5c4de2863b
8 changed files with 139 additions and 3 deletions

View file

@ -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);