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
a7e5883e
Commit
a7e5883e
authored
Oct 23, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix cascade order of assignments for complete assignments within parallel assignments
parent
543d5ca5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Cython/Compiler/Parsing.py
Cython/Compiler/Parsing.py
+4
-3
No files found.
Cython/Compiler/Parsing.py
View file @
a7e5883e
...
@@ -928,7 +928,7 @@ def flatten_parallel_assignments(input, output):
...
@@ -928,7 +928,7 @@ def flatten_parallel_assignments(input, output):
output
.
append
(
input
)
output
.
append
(
input
)
return
return
complete_assignments
=
[
rhs
]
complete_assignments
=
[]
rhs_size
=
len
(
rhs
.
args
)
rhs_size
=
len
(
rhs
.
args
)
lhs_targets
=
[
[]
for
_
in
range
(
rhs_size
)
]
lhs_targets
=
[
[]
for
_
in
range
(
rhs_size
)
]
...
@@ -968,8 +968,9 @@ def flatten_parallel_assignments(input, output):
...
@@ -968,8 +968,9 @@ def flatten_parallel_assignments(input, output):
for
targets
,
expr
in
zip
(
lhs_targets
,
lhs
.
args
):
for
targets
,
expr
in
zip
(
lhs_targets
,
lhs
.
args
):
targets
.
append
(
expr
)
targets
.
append
(
expr
)
if
len
(
complete_assignments
)
>
1
:
if
complete_assignments
:
output
.
append
(
complete_assignments
[::
-
1
])
complete_assignments
.
append
(
rhs
)
output
.
append
(
complete_assignments
)
# recursively flatten partial assignments
# recursively flatten partial assignments
for
cascade
,
rhs
in
zip
(
lhs_targets
,
rhs
.
args
):
for
cascade
,
rhs
in
zip
(
lhs_targets
,
rhs
.
args
):
...
...
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