projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64f2197
)
comment
author
Stefan Behnel
<scoder@users.berlios.de>
Sun, 4 Oct 2009 12:12:04 +0000
(14:12 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sun, 4 Oct 2009 12:12:04 +0000
(14:12 +0200)
Cython/Compiler/Optimize.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Optimize.py
b/Cython/Compiler/Optimize.py
index 2d21584b6f21f66e2f5357fed34390964021d196..71fd53f3429ef26c2d1ce6240a06e8be76057a94 100644
(file)
--- a/
Cython/Compiler/Optimize.py
+++ b/
Cython/Compiler/Optimize.py
@@
-38,6
+38,7
@@
class IterationTransform(Visitor.VisitorTransform):
"""Transform some common for-in loop patterns into efficient C loops:
- for-in-dict loop becomes a while loop calling PyDict_Next()
+ - for-in-enumerate is replaced by an external counter variable
- for-in-range loop becomes a plain C for loop
"""
PyDict_Next_func_type = PyrexTypes.CFuncType(