Skip to content

Commit 83652a3

Browse files
committed
include the actual change
1 parent 1873d83 commit 83652a3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Objects/typeobject.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11183,14 +11183,14 @@ update_one_slot(PyTypeObject *type, pytype_slotdef *p)
1118311183
}
1118411184
else {
1118511185
use_generic = 1;
11186-
// if (generic == NULL && Py_IS_TYPE(descr, &PyMethodDescr_Type) &&
11187-
// *ptr == ((PyMethodDescrObject *)descr)->d_method->ml_meth)
11188-
// {
11189-
// generic = *ptr;
11190-
// }
11191-
// else {
11192-
// generic = p->function;
11193-
// }
11186+
if (generic == NULL && Py_IS_TYPE(descr, &PyMethodDescr_Type) &&
11187+
*ptr == ((PyMethodDescrObject *)descr)->d_method->ml_meth)
11188+
{
11189+
generic = *ptr;
11190+
}
11191+
else {
11192+
generic = p->function;
11193+
}
1119411194
generic = p->function;
1119511195
if (p->function == slot_tp_call) {
1119611196
/* A generic __call__ is incompatible with vectorcall */

0 commit comments

Comments
 (0)