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
af0741b7
Commit
af0741b7
authored
May 16, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix warning on unused utility code after enumerate() optimisation
parent
3aecc982
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+4
-1
No files found.
Cython/Compiler/ExprNodes.py
View file @
af0741b7
...
...
@@ -3000,7 +3000,6 @@ class SequenceNode(ExprNode):
self
.
unpacked_items
.
append
(
unpacked_item
)
self
.
coerced_unpacked_items
.
append
(
coerced_unpacked_item
)
self
.
type
=
py_object_type
env
.
use_utility_code
(
unpacking_utility_code
)
def
generate_result_code
(
self
,
code
):
self
.
generate_operation_code
(
code
)
...
...
@@ -3020,6 +3019,8 @@ class SequenceNode(ExprNode):
# allocates the temps in a rather hacky way -- the assignment
# is evaluated twice, within each if-block.
code
.
globalstate
.
use_utility_code
(
unpacking_utility_code
)
if
rhs
.
type
is
tuple_type
:
tuple_check
=
"likely(%s != Py_None)"
else
:
...
...
@@ -3092,6 +3093,8 @@ class SequenceNode(ExprNode):
code
.
putln
(
"}"
)
def
generate_starred_assignment_code
(
self
,
rhs
,
code
):
code
.
globalstate
.
use_utility_code
(
unpacking_utility_code
)
for
i
,
arg
in
enumerate
(
self
.
args
):
if
arg
.
is_starred
:
starred_target
=
self
.
unpacked_items
[
i
]
...
...
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