diff options
| author | Eric Snow <ericsnowcurrently@gmail.com> | 2022-07-28 19:23:47 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-28 19:23:47 -0600 |
| commit | 3e7cad3bca64ab213c66e2bd41c9d1cf1d057526 (patch) | |
| tree | def84e7995f73122d158470f8f178d38726a981c /Include/cpython | |
| parent | 6e44bf9558dbcaffd78b7c4fc7f6b474388b4a9a (diff) | |
| download | cpython-git-3e7cad3bca64ab213c66e2bd41c9d1cf1d057526.tar.gz | |
gh-94673: Add Per-Interpreter tp_weaklist for Static Builtin Types (#95302)
* Store tp_weaklist on the interpreter state for static builtin types.
* Factor out _PyStaticType_GET_WEAKREFS_LISTPTR().
* Add _PyStaticType_ClearWeakRefs().
* Add a comment about how _PyStaticType_ClearWeakRefs() loops.
* Document the change.
* Update Doc/whatsnew/3.12.rst
* Fix a typo.
Diffstat (limited to 'Include/cpython')
| -rw-r--r-- | Include/cpython/object.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cpython/object.h b/Include/cpython/object.h index 1ca1a576fb..026803320a 100644 --- a/Include/cpython/object.h +++ b/Include/cpython/object.h @@ -219,7 +219,7 @@ struct _typeobject { PyObject *tp_mro; /* method resolution order */ PyObject *tp_cache; PyObject *tp_subclasses; - PyObject *tp_weaklist; + PyObject *tp_weaklist; /* not used for static builtin types */ destructor tp_del; /* Type attribute cache version tag. Added in version 2.6 */ |
