diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-05-31 21:49:01 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-05-31 21:49:01 +0300 |
commit | ceb13dcc40dd5e11c8e3189b3c15b3bd5897d4ac (patch) | |
tree | eda501e07fcaba4f64bc3d29725472162f2e4227 /contrib/tools/cython/Cython/Utility/CythonFunction.c | |
parent | 5b69557e440e6ac18399a29076fef25602859f17 (diff) | |
download | ydb-ceb13dcc40dd5e11c8e3189b3c15b3bd5897d4ac.tar.gz |
intermediate changes
ref:85306a27df0004d13faf777131d0b092370e6b90
Diffstat (limited to 'contrib/tools/cython/Cython/Utility/CythonFunction.c')
-rw-r--r-- | contrib/tools/cython/Cython/Utility/CythonFunction.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/tools/cython/Cython/Utility/CythonFunction.c b/contrib/tools/cython/Cython/Utility/CythonFunction.c index d51b308a8d..73b51d7896 100644 --- a/contrib/tools/cython/Cython/Utility/CythonFunction.c +++ b/contrib/tools/cython/Cython/Utility/CythonFunction.c @@ -661,6 +661,13 @@ static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, P self = PyTuple_GetItem(args, 0); if (unlikely(!self)) { Py_DECREF(new_args); + PyErr_Format(PyExc_TypeError, + "unbound method %.200s() needs an argument", +#if PY_MAJOR_VERSION >= 3 + cyfunc->func_qualname); +#else + PyString_AsString(cyfunc->func_qualname)); +#endif return NULL; } |