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
Boxiang Sun
cython
Commits
b9c2853f
Commit
b9c2853f
authored
Mar 30, 2009
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
All exprnodes over; NewTempExprNode folded into ExprNode
parent
a1f3d113
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
92 additions
and
202 deletions
+92
-202
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+89
-197
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+2
-4
Cython/Compiler/UtilNodes.py
Cython/Compiler/UtilNodes.py
+1
-1
No files found.
Cython/Compiler/ExprNodes.py
View file @
b9c2853f
This diff is collapsed.
Click to expand it.
Cython/Compiler/Nodes.py
View file @
b9c2853f
...
...
@@ -3084,10 +3084,8 @@ class InPlaceAssignmentNode(AssignmentNode):
import
ExprNodes
self
.
rhs
.
generate_evaluation_code
(
code
)
self
.
dup
.
generate_subexpr_evaluation_code
(
code
)
if
isinstance
(
self
.
dup
,
ExprNodes
.
NewTempExprNode
):
# This is because we're manually messing with subexpr nodes
if
self
.
dup
.
is_temp
:
self
.
dup
.
allocate_temp_result
(
code
)
if
self
.
dup
.
is_temp
:
self
.
dup
.
allocate_temp_result
(
code
)
# self.dup.generate_result_code is run only if it is not buffer access
if
self
.
operator
==
"**"
:
extra
=
", Py_None"
...
...
Cython/Compiler/UtilNodes.py
View file @
b9c2853f
...
...
@@ -142,7 +142,7 @@ class ResultRefNode(AtomicExprNode):
pass
class
EvalWithTempExprNode
(
ExprNodes
.
NewTemp
ExprNode
):
class
EvalWithTempExprNode
(
ExprNodes
.
ExprNode
):
# A wrapper around a subexpression that moves an expression into a
# temp variable and provides it to the subexpression.
...
...
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