File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -255,6 +255,7 @@ PyFunction_SetDefaults(PyObject *op, PyObject *defaults)
255
255
PyErr_SetString (PyExc_SystemError , "non-tuple default args" );
256
256
return -1 ;
257
257
}
258
+ handle_func_event (PyFunction_EVENT_MODIFY_DEFAULTS , op , NULL );
258
259
((PyFunctionObject * )op )-> func_version = 0 ;
259
260
Py_XSETREF (((PyFunctionObject * )op )-> func_defaults , defaults );
260
261
return 0 ;
@@ -295,6 +296,7 @@ PyFunction_SetKwDefaults(PyObject *op, PyObject *defaults)
295
296
"non-dict keyword only default args" );
296
297
return -1 ;
297
298
}
299
+ handle_func_event (PyFunction_EVENT_MODIFY_KWDEFAULTS , op , NULL );
298
300
((PyFunctionObject * )op )-> func_version = 0 ;
299
301
Py_XSETREF (((PyFunctionObject * )op )-> func_kwdefaults , defaults );
300
302
return 0 ;
You can’t perform that action at this time.
0 commit comments