Commit 91d3c9fc authored by Robert Bradshaw's avatar Robert Bradshaw

Workaround for T441, enumerate optimization bug.

parent 07ef7b16
......@@ -237,6 +237,10 @@ class IterationTransform(Visitor.VisitorTransform):
# 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',
type=counter_type,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment