diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2016-03-24 20:08:36 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2016-03-24 20:08:36 +0100 |
commit | 9c7dac3bdda2fbae69a06eae5ca7791bf8144bdd (patch) | |
tree | 296c29e9e4ee070d698f2df92c1bd8a0767c9e76 | |
parent | aa748415b539b630c67335055b23b9f250114dd7 (diff) | |
download | cython-9c7dac3bdda2fbae69a06eae5ca7791bf8144bdd.tar.gz |
improve comments
-rw-r--r-- | Cython/Compiler/Optimize.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Cython/Compiler/Optimize.py b/Cython/Compiler/Optimize.py index 133a12c49..d7f3e772e 100644 --- a/Cython/Compiler/Optimize.py +++ b/Cython/Compiler/Optimize.py @@ -1519,13 +1519,13 @@ class EarlyReplaceBuiltinCalls(Visitor.EnvTransform): def _handle_simple_function_all(self, node, pos_args): """Transform - _result = all(x for L in LL for x in L) + _result = all(p(x) for L in LL for x in L) into for L in LL: for x in L: - if not x: + if not p(x): _result = False break else: @@ -1539,13 +1539,13 @@ class EarlyReplaceBuiltinCalls(Visitor.EnvTransform): def _handle_simple_function_any(self, node, pos_args): """Transform - _result = any(x for L in LL for x in L) + _result = any(p(x) for L in LL for x in L) into for L in LL: for x in L: - if x: + if p(x): _result = True break else: |