From: Stefan Behnel Date: Sun, 4 Oct 2009 12:12:04 +0000 (+0200) Subject: comment X-Git-Tag: 0.12.alpha0~182^2~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0a3b736e8db43c72e07c2e32e486473e0752c659;p=cython.git comment --- diff --git a/Cython/Compiler/Optimize.py b/Cython/Compiler/Optimize.py index 2d21584b..71fd53f3 100644 --- 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(