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
Xavier Thompson
cython
Commits
0c42e8eb
Commit
0c42e8eb
authored
Dec 09, 2020
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disallow conversions between pyobject and qualified cypclass types
parent
3d681d3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+9
-5
No files found.
Cython/Compiler/PyrexTypes.py
View file @
0c42e8eb
...
...
@@ -4809,6 +4809,9 @@ class QualifiedCypclassType(BaseType):
is_cyp_class
=
1
is_qualified_cyp_class
=
1
to_py_function
=
None
from_py_function
=
None
assignable_to
=
{
'active'
:
(
'active'
,
'iso~'
),
'iso'
:
(
'iso~'
,),
...
...
@@ -4876,15 +4879,16 @@ class QualifiedCypclassType(BaseType):
return
self
.
qual_base_type
.
deduce_template_params
(
actual
)
def
can_coerce_to_pyobject
(
self
,
env
):
return
self
.
qual_base_type
.
can_coerce_to_pyobject
(
env
)
return
False
def
can_coerce_from_pyobject
(
self
,
env
):
return
self
.
qual_base_type
.
can_coerce_from_pyobject
(
env
)
return
False
def
create_to_py_utility_code
(
self
,
env
):
if
self
.
qual_base_type
.
create_to_py_utility_code
(
env
):
self
.
to_py_function
=
self
.
qual_base_type
.
to_py_function
return
True
return
False
def
create_from_py_utility_code
(
self
,
env
):
return
False
def
assignable_from
(
self
,
src_type
):
return
self
.
assignable_from_resolved_type
(
src_type
.
resolve
())
...
...
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