diff options
author | Mark Shannon <mark@hotpy.org> | 2024-08-27 09:34:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-27 09:34:46 (GMT) |
commit | 89328f7b129a6e4d7164f954b976bf45da69f0b2 (patch) | |
tree | 66ecae5b1b0736a09598bb4412bad006e5c1dab1 /Objects/typeobject.c | |
parent | fe85a8291d9aa11c9ce9e207c39ea0a0c35f9625 (diff) | |
download | cpython-89328f7b129a6e4d7164f954b976bf45da69f0b2.zip cpython-89328f7b129a6e4d7164f954b976bf45da69f0b2.tar.gz cpython-89328f7b129a6e4d7164f954b976bf45da69f0b2.tar.bz2 |
GH-115775: Use `__static_attributes__` to initialize shared keys (GH-118468)
Diffstat (limited to 'Objects/typeobject.c')
-rw-r--r-- | Objects/typeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index f74d5122..c3a8fb5 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -8334,7 +8334,7 @@ type_ready_managed_dict(PyTypeObject *type) } PyHeapTypeObject* et = (PyHeapTypeObject*)type; if (et->ht_cached_keys == NULL) { - et->ht_cached_keys = _PyDict_NewKeysForClass(); + et->ht_cached_keys = _PyDict_NewKeysForClass(et); if (et->ht_cached_keys == NULL) { PyErr_NoMemory(); return -1; |