@@ -2946,7 +2946,7 @@ PyType_GetSlot(PyTypeObject *type, int slot)
2946
2946
This returns a borrowed reference, and might set an exception.
2947
2947
'error' is set to: -1: error with exception; 1: error without exception; 0: ok */
2948
2948
static PyObject *
2949
- _PyType_LookupUncached (PyTypeObject * type , PyObject * name , int * error )
2949
+ find_name_in_mro (PyTypeObject * type , PyObject * name , int * error )
2950
2950
{
2951
2951
Py_ssize_t i , n ;
2952
2952
PyObject * mro , * res , * base , * dict ;
@@ -3026,7 +3026,7 @@ _PyType_Lookup(PyTypeObject *type, PyObject *name)
3026
3026
}
3027
3027
}
3028
3028
3029
- res = _PyType_LookupUncached (type , name , & error );
3029
+ res = find_name_in_mro (type , name , & error );
3030
3030
/* Only put NULL results into cache if there was no error. */
3031
3031
if (error ) {
3032
3032
/* It's not ideal to clear the error condition,
@@ -7003,7 +7003,7 @@ update_one_slot(PyTypeObject *type, slotdef *p)
7003
7003
}
7004
7004
do {
7005
7005
/* Use faster uncached lookup as we won't get any cache hits during type setup. */
7006
- descr = _PyType_LookupUncached (type , p -> name_strobj , & error );
7006
+ descr = find_name_in_mro (type , p -> name_strobj , & error );
7007
7007
if (descr == NULL ) {
7008
7008
if (error == -1 ) {
7009
7009
/* It is unlikely by not impossible that there has been an exception
0 commit comments