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
644e693c
Commit
644e693c
authored
7 years ago
by
scoder
Committed by
GitHub
7 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1899 from rlamy/pypy5.9
Fix classmethod creation for (upcoming) PyPy{,3} 5.9
parents
5c9cbb61
e649d770
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 @
644e693c
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
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