Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34.2k
Closed
Description
The function is unused and not publicly visible (i.e, notPyAPI_FUNC). I also did a sanity check of:
- https://grep.app/search?q=PyType_GetMro
- grep throughhttps://github.com/hpyproject/top4000-pypi-packages
Lines 654 to 674 in18aec59
| PyObject* | |
| _PyType_GetMRO(PyTypeObject*self) | |
| { | |
| #ifdefPy_GIL_DISABLED | |
| PyObject*mro=_Py_atomic_load_ptr_relaxed(&self->tp_mro); | |
| if (mro==NULL) { | |
| returnNULL; | |
| } | |
| if (_Py_TryIncrefCompare(&self->tp_mro,mro)) { | |
| returnmro; | |
| } | |
| BEGIN_TYPE_LOCK(); | |
| mro=lookup_tp_mro(self); | |
| Py_XINCREF(mro); | |
| END_TYPE_LOCK(); | |
| returnmro; | |
| #else | |
| returnPy_XNewRef(lookup_tp_mro(self)); | |
| #endif | |
| } |