mirror of
https://github.com/python/cpython.git
synced 2026-01-08 08:22:41 +00:00
gh-92216: improve performance of hasattr for type objects (GH-99979)
This commit is contained in:
parent
49f6ff719c
commit
7fc7909677
4 changed files with 44 additions and 8 deletions
|
|
@ -74,6 +74,10 @@ extern static_builtin_state * _PyStaticType_GetState(PyTypeObject *);
|
|||
extern void _PyStaticType_ClearWeakRefs(PyTypeObject *type);
|
||||
extern void _PyStaticType_Dealloc(PyTypeObject *type);
|
||||
|
||||
PyObject *
|
||||
_Py_type_getattro_impl(PyTypeObject *type, PyObject *name, int *suppress_missing_attribute);
|
||||
PyObject *
|
||||
_Py_type_getattro(PyTypeObject *type, PyObject *name);
|
||||
|
||||
PyObject *_Py_slot_tp_getattro(PyObject *self, PyObject *name);
|
||||
PyObject *_Py_slot_tp_getattr_hook(PyObject *self, PyObject *name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue