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
d05c5e3b
Commit
d05c5e3b
authored
Sep 28, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid unnecessary safety temping of function arguments during coercions
parent
87ccc971
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+7
-1
No files found.
Cython/Compiler/ExprNodes.py
View file @
d05c5e3b
...
...
@@ -7390,7 +7390,7 @@ class TypecastNode(ExprNode):
return
self
.
operand
.
is_simple
()
def
nonlocally_immutable
(
self
):
return
self
.
operand
.
nonlocally_immutable
()
return
self
.
is_temp
or
self
.
operand
.
nonlocally_immutable
()
def
nogil_check
(
self
,
env
):
if
self
.
type
and
self
.
type
.
is_pyobject
and
self
.
is_temp
:
...
...
@@ -9295,6 +9295,9 @@ class PyTypeTestNode(CoercionNode):
def
is_ephemeral
(
self
):
return
self
.
arg
.
is_ephemeral
()
def
nonlocally_immutable
(
self
):
return
super
(
PyTypeTestNode
,
self
).
nonlocally_immutable
()
or
self
.
arg
.
nonlocally_immutable
()
def
calculate_constant_result
(
self
):
# FIXME
pass
...
...
@@ -9351,6 +9354,9 @@ class NoneCheckNode(CoercionNode):
def
result_in_temp
(
self
):
return
self
.
arg
.
result_in_temp
()
def
nonlocally_immutable
(
self
):
return
super
(
NoneCheckNode
,
self
).
nonlocally_immutable
()
or
self
.
arg
.
nonlocally_immutable
()
def
calculate_result_code
(
self
):
return
self
.
arg
.
result
()
...
...
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