mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Add the co_extra field and accompanying APIs to code objects.
This completes PEP 523.
This commit is contained in:
parent
a9296e7f3b
commit
5c4de2863b
8 changed files with 139 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue