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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
c49ca39a
Commit
c49ca39a
authored
Aug 18, 2020
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cypclass methods with self-type arguments not being wrapped to Python
parent
de75f987
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Cython/Compiler/CypclassTransforms.py
Cython/Compiler/CypclassTransforms.py
+1
-1
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+4
-4
No files found.
Cython/Compiler/CypclassTransforms.py
View file @
c49ca39a
...
...
@@ -281,7 +281,7 @@ def NAME(ARGDECLS):
if
py_method_wrapper
:
stats
.
append
(
py_method_wrapper
)
elif
not
attr
.
is_type
:
elif
attr
.
is_variable
and
attr
.
name
!=
"this"
:
property
=
self
.
synthesize_property
(
attr
,
node
.
entry
)
if
property
:
stats
.
append
(
property
)
...
...
Cython/Compiler/PyrexTypes.py
View file @
c49ca39a
...
...
@@ -4309,13 +4309,13 @@ class CypClassType(CppClassType):
self
.
_mro
=
mro_C3_merge
(
inputs
)
return
self
.
_mro
# allow conversion to Python only when there is a wrapper type
# allow conversion to Python only when there is a wrapper type
, or will be one
def
can_coerce_to_pyobject
(
self
,
env
):
return
self
.
wrapper_type
is
not
None
return
self
.
wrapper_type
is
not
None
or
self
.
support_wrapper
# allow conversion from Python only when there is a wrapper type
# allow conversion from Python only when there is a wrapper type
, or will be one
def
can_coerce_from_pyobject
(
self
,
env
):
return
self
.
wrapper_type
is
not
None
return
self
.
wrapper_type
is
not
None
or
self
.
support_wrapper
def
create_to_py_utility_code
(
self
,
env
):
if
not
self
.
wrapper_type
:
...
...
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