mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
gh-111178: Make slot functions in typeobject.c have compatible types (GH-112752)
This commit is contained in:
parent
57b7e52790
commit
a545a86ec6
3 changed files with 36 additions and 21 deletions
|
@ -1196,7 +1196,7 @@ PyObject_GetOptionalAttr(PyObject *v, PyObject *name, PyObject **result)
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
if (tp->tp_getattro == (getattrofunc)_Py_type_getattro) {
|
||||
if (tp->tp_getattro == _Py_type_getattro) {
|
||||
int supress_missing_attribute_exception = 0;
|
||||
*result = _Py_type_getattro_impl((PyTypeObject*)v, name, &supress_missing_attribute_exception);
|
||||
if (supress_missing_attribute_exception) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue