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
ebe51557
Commit
ebe51557
authored
2 years ago
by
Matti Picus
Committed by
GitHub
2 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow setting descriptor docstring on PyPy>v7.3.9 (GH-4701)
parent
d395a56f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+2
-2
Cython/Utility/ModuleSetupCode.c
Cython/Utility/ModuleSetupCode.c
+9
-0
No files found.
Cython/Compiler/Nodes.py
View file @
ebe51557
...
...
@@ -3491,7 +3491,7 @@ class DefNodeWrapper(FuncDefNode):
docstr
.
as_c_string_literal
()))
if
entry
.
is_special
:
code
.
putln
(
'#if CYTHON_
COMPILING_IN_CPYTHON
'
)
code
.
putln
(
'#if CYTHON_
UPDATE_DESCRIPTOR_DOC
'
)
code
.
putln
(
"struct wrapperbase %s;"
%
entry
.
wrapperbase_cname
)
code
.
putln
(
'#endif'
)
...
...
@@ -4986,7 +4986,7 @@ class CClassDefNode(ClassDefNode):
preprocessor_guard
=
slot
.
preprocessor_guard_code
()
if
slot
else
None
if
preprocessor_guard
:
code
.
putln
(
preprocessor_guard
)
code
.
putln
(
'#if CYTHON_
COMPILING_IN_CPYTHON
'
)
code
.
putln
(
'#if CYTHON_
UPDATE_DESCRIPTOR_DOC
'
)
code
.
putln
(
"{"
)
code
.
putln
(
'PyObject *wrapper = PyObject_GetAttrString((PyObject *)&%s, "%s"); %s'
%
(
...
...
This diff is collapsed.
Click to expand it.
Cython/Utility/ModuleSetupCode.c
View file @
ebe51557
...
...
@@ -83,6 +83,9 @@
#define CYTHON_USE_DICT_VERSIONS 0
#undef CYTHON_USE_EXC_INFO_STACK
#define CYTHON_USE_EXC_INFO_STACK 0
#ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
#define CYTHON_UPDATE_DESCRIPTOR_DOC (PYPY_VERSION_HEX >= 0x07030900)
#endif
#elif defined(PYSTON_VERSION)
#define CYTHON_COMPILING_IN_PYPY 0
...
...
@@ -126,6 +129,9 @@
#define CYTHON_USE_DICT_VERSIONS 0
#undef CYTHON_USE_EXC_INFO_STACK
#define CYTHON_USE_EXC_INFO_STACK 0
#ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
#define CYTHON_UPDATE_DESCRIPTOR_DOC 1
#endif
#else
#define CYTHON_COMPILING_IN_PYPY 0
...
...
@@ -203,6 +209,9 @@
#elif !defined(CYTHON_USE_EXC_INFO_STACK)
#define CYTHON_USE_EXC_INFO_STACK (PY_VERSION_HEX >= 0x030700A3)
#endif
#ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
#define CYTHON_UPDATE_DESCRIPTOR_DOC 1
#endif
#endif
#if !defined(CYTHON_FAST_PYCCALL)
...
...
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