mirror of
https://github.com/python/cpython.git
synced 2026-05-06 12:49:07 -04:00
gh-148398: add type watcher in _CHECK_ATTR_CLASS (GH-148399)
This commit is contained in:
@@ -226,6 +226,10 @@ dummy_func(void) {
|
||||
}
|
||||
else {
|
||||
sym_set_const(owner, type);
|
||||
if ((((PyTypeObject *)type)->tp_flags & Py_TPFLAGS_IMMUTABLETYPE) == 0) {
|
||||
PyType_Watch(TYPE_WATCHER_ID, type);
|
||||
_Py_BloomFilter_Add(dependencies, type);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user