Skip to content
Merged
Prev Previous commit
Next Next commit
include the actual change
  • Loading branch information
tom-pytel committed Apr 9, 2025
commit 83652a3f2855a075769a617bd747a3c6fe5d2950
16 changes: 8 additions & 8 deletions Objects/typeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -11183,14 +11183,14 @@ update_one_slot(PyTypeObject *type, pytype_slotdef *p)
}
else {
use_generic = 1;
// if (generic == NULL && Py_IS_TYPE(descr, &PyMethodDescr_Type) &&
// *ptr == ((PyMethodDescrObject *)descr)->d_method->ml_meth)
// {
// generic = *ptr;
// }
// else {
// generic = p->function;
// }
if (generic == NULL && Py_IS_TYPE(descr, &PyMethodDescr_Type) &&
*ptr == ((PyMethodDescrObject *)descr)->d_method->ml_meth)
{
generic = *ptr;
}
else {
generic = p->function;
}
generic = p->function;
if (p->function == slot_tp_call) {
/* A generic __call__ is incompatible with vectorcall */
Expand Down