mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
gh-104066: Improve performance of hasattr for module objects (#104063)
This commit is contained in:
parent
c9ecd3ee75
commit
fdcb49c36b
4 changed files with 78 additions and 29 deletions
|
|
@ -36,6 +36,9 @@ static inline PyObject* _PyModule_GetDict(PyObject *mod) {
|
|||
return dict;
|
||||
}
|
||||
|
||||
PyObject* _Py_module_getattro_impl(PyModuleObject *m, PyObject *name, int suppress);
|
||||
PyObject* _Py_module_getattro(PyModuleObject *m, PyObject *name);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue