| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,2 @@ | |||
| 1 | + :c:func:`PyDescr_NewMethod` and :c:func:`PyCFunction_NewEx` now include the | ||
| 2 | + method name in the SystemError "bad call flags" error message to ease debug. | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -892,7 +892,8 @@ PyDescr_NewMethod(PyTypeObject *type, PyMethodDef *method) | |||
| 892 | 892 | vectorcall = method_vectorcall_O; | |
| 893 | 893 | break; | |
| 894 | 894 | default: | |
| 895 | - PyErr_SetString(PyExc_SystemError, "bad call flags"); | ||
| 895 | + PyErr_Format(PyExc_SystemError, | ||
| 896 | + "%s() method: bad call flags", method->ml_name); | ||
| 896 | 897 | return NULL; | |
| 897 | 898 | } | |
| 898 | 899 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,7 +62,8 @@ PyCFunction_NewEx(PyMethodDef *ml, PyObject *self, PyObject *module) | |||
| 62 | 62 | vectorcall = cfunction_vectorcall_O; | |
| 63 | 63 | break; | |
| 64 | 64 | default: | |
| 65 | - PyErr_SetString(PyExc_SystemError, "bad call flags"); | ||
| 65 | + PyErr_Format(PyExc_SystemError, | ||
| 66 | + "%s() method: bad call flags", ml->ml_name); | ||
| 66 | 67 | return NULL; | |
| 67 | 68 | } | |
| 68 | 69 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments