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
Gwenaël Samain
cython
Commits
e649d770
Commit
e649d770
authored
Sep 29, 2017
by
Ronan Lamy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix classmethod creation for (upcoming) PyPy{,3} 5.9
parent
5c9cbb61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cython/Utility/CythonFunction.c
Cython/Utility/CythonFunction.c
+3
-3
No files found.
Cython/Utility/CythonFunction.c
View file @
e649d770
...
...
@@ -1216,14 +1216,14 @@ static PyObject* __Pyx_Method_ClassMethod(PyObject *method); /*proto*/
//////////////////// ClassMethod ////////////////////
static
PyObject
*
__Pyx_Method_ClassMethod
(
PyObject
*
method
)
{
#if CYTHON_COMPILING_IN_PYPY
#if CYTHON_COMPILING_IN_PYPY
&& PYPY_VERSION_NUM <= 0x05080000
if
(
PyObject_TypeCheck
(
method
,
&
PyWrapperDescr_Type
))
{
// cdef classes
return
PyClassMethod_New
(
method
);
}
#else
#if CYTHON_COMPILING_IN_PYSTON
// special C-API function only in Pyston
#if CYTHON_COMPILING_IN_PYSTON
|| CYTHON_COMPILING_IN_PYPY
// special C-API function only in Pyston
and PyPy >= 5.9
if
(
PyMethodDescr_Check
(
method
))
{
#else
// It appears that PyMethodDescr_Type is not exposed anywhere in the CPython C-API
...
...
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