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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
6fb8b963
Commit
6fb8b963
authored
Nov 29, 2008
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Converted IteratorNode to new temps, fixes #124
parent
237396d2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+1
-1
tests/run/ticket_124.pyx
tests/run/ticket_124.pyx
+8
-0
No files found.
Cython/Compiler/ExprNodes.py
View file @
6fb8b963
...
@@ -1349,7 +1349,7 @@ class ImportNode(ExprNode):
...
@@ -1349,7 +1349,7 @@ class ImportNode(ExprNode):
code
.
error_goto_if_null
(
self
.
result
(),
self
.
pos
)))
code
.
error_goto_if_null
(
self
.
result
(),
self
.
pos
)))
class
IteratorNode
(
ExprNode
):
class
IteratorNode
(
NewTemp
ExprNode
):
# Used as part of for statement implementation.
# Used as part of for statement implementation.
#
#
# allocate_counter_temp/release_counter_temp needs to be called
# allocate_counter_temp/release_counter_temp needs to be called
...
...
tests/run/ticket_124.pyx
0 → 100644
View file @
6fb8b963
"""
>>> spam(dict(test=2))
False
"""
def
spam
(
dict
d
):
for
elm
in
d
:
return
False
return
True
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