Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
5266b9c9
Commit
5266b9c9
authored
Oct 04, 2022
by
da-woods
Committed by
GitHub
Oct 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"Fix" an exception formatting issue on Py2 (#5018)
parent
d0b95046
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Cython/Utility/CythonFunction.c
Cython/Utility/CythonFunction.c
+8
-0
No files found.
Cython/Utility/CythonFunction.c
View file @
5266b9c9
...
...
@@ -660,9 +660,17 @@ static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, P
self
=
PyTuple_GetItem
(
args
,
0
);
if
(
unlikely
(
!
self
))
{
Py_DECREF
(
new_args
);
#if PY_MAJOR_VERSION > 2
PyErr_Format
(
PyExc_TypeError
,
"unbound method %.200S() needs an argument"
,
cyfunc
->
func_qualname
);
#else
// %S doesn't work in PyErr_Format on Py2 and replicating
// the formatting seems more trouble than it's worth
// (so produce a less useful error message).
PyErr_SetString
(
PyExc_TypeError
,
"unbound method needs an argument"
);
#endif
return
NULL
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment