Fixing an issue with Python class property setters (only helps debugging, does not solve the issue)

This commit is contained in:
Matthias Koefferlein 2025-01-16 20:41:24 +01:00
parent 063040695a
commit 629aef6d06
1 changed files with 8 additions and 1 deletions

View File

@ -1285,7 +1285,14 @@ property_setter_impl (int mid, PyObject *self, PyObject *value)
meth->call (obj, arglist, retlist);
return get_return_value (p, retlist, meth, heap);
PyObject *ret = get_return_value (p, retlist, meth, heap);
if (ret == NULL) {
Py_INCREF (Py_None);
ret = Py_None;
}
return ret;
}
}