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
660bd901
Commit
660bd901
authored
Jun 09, 2020
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keep 'del' statement from inferring cypclass to pyobject
parent
1efe7079
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Cython/Compiler/FlowControl.py
Cython/Compiler/FlowControl.py
+3
-1
No files found.
Cython/Compiler/FlowControl.py
View file @
660bd901
...
...
@@ -373,7 +373,9 @@ class NameDeletion(NameAssignment):
def
infer_type
(
self
):
inferred_type
=
self
.
rhs
.
infer_type
(
self
.
entry
.
scope
)
if
(
not
inferred_type
.
is_pyobject
and
inferred_type
.
can_coerce_to_pyobject
(
self
.
entry
.
scope
)):
and
inferred_type
.
can_coerce_to_pyobject
(
self
.
entry
.
scope
)
and
not
inferred_type
.
is_cyp_class
):
# do not coerce cypclass to pyobject just for a del statement
return
PyrexTypes
.
py_object_type
self
.
inferred_type
=
inferred_type
return
inferred_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