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
314a0f1c
Commit
314a0f1c
authored
Nov 14, 2010
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tiny fix, cleanup
parent
208ba244
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+3
-2
No files found.
Cython/Compiler/ParseTreeTransforms.py
View file @
314a0f1c
...
...
@@ -1207,13 +1207,15 @@ class ExpandInplaceOperators(EnvTransform):
lhs
,
let_ref_nodes
=
side_effect_free_reference
(
lhs
,
setting
=
True
)
except
ValueError
:
return
node
lhs
.
analyse_types
(
env
)
dup
=
lhs
.
__class__
(
**
lhs
.
__dict__
)
binop
=
binop_node
(
node
.
pos
,
operator
=
node
.
operator
,
operand1
=
dup
,
operand2
=
rhs
,
inplace
=
True
)
# Manually analyse types for new node.
lhs
.
analyse_target_types
(
env
)
dup
.
analyse_types
(
env
)
binop
.
analyse_operation
(
env
)
node
=
SingleAssignmentNode
(
node
.
pos
,
...
...
@@ -1223,7 +1225,6 @@ class ExpandInplaceOperators(EnvTransform):
let_ref_nodes
.
reverse
()
for
t
in
let_ref_nodes
:
node
=
LetNode
(
t
,
node
)
# Manually analyse types for new node.
return
node
def
visit_ExprNode
(
self
,
node
):
...
...
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