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
91d3c9fc
Commit
91d3c9fc
authored
Oct 29, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround for T441, enumerate optimization bug.
parent
07ef7b16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Cython/Compiler/Optimize.py
Cython/Compiler/Optimize.py
+4
-0
No files found.
Cython/Compiler/Optimize.py
View file @
91d3c9fc
...
...
@@ -236,6 +236,10 @@ class IterationTransform(Visitor.VisitorTransform):
if
not
counter_type
.
is_pyobject
and
not
counter_type
.
is_int
:
# nothing we can do here, I guess
return
node
if
iterable_target
.
type
is
not
PyrexTypes
.
py_object_type
:
# this may need conversion, could be made to work
return
node
temp
=
UtilNodes
.
LetRefNode
(
ExprNodes
.
IntNode
(
enumerate_function
.
pos
,
value
=
'0'
,
...
...
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