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
9c7dac3b
Commit
9c7dac3b
authored
Mar 24, 2016
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve comments
parent
aa748415
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Cython/Compiler/Optimize.py
Cython/Compiler/Optimize.py
+4
-4
No files found.
Cython/Compiler/Optimize.py
View file @
9c7dac3b
...
@@ -1519,13 +1519,13 @@ class EarlyReplaceBuiltinCalls(Visitor.EnvTransform):
...
@@ -1519,13 +1519,13 @@ class EarlyReplaceBuiltinCalls(Visitor.EnvTransform):
def
_handle_simple_function_all
(
self
,
node
,
pos_args
):
def
_handle_simple_function_all
(
self
,
node
,
pos_args
):
"""Transform
"""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
into
for L in LL:
for L in LL:
for x in L:
for x in L:
if not
x
:
if not
p(x)
:
_result = False
_result = False
break
break
else:
else:
...
@@ -1539,13 +1539,13 @@ class EarlyReplaceBuiltinCalls(Visitor.EnvTransform):
...
@@ -1539,13 +1539,13 @@ class EarlyReplaceBuiltinCalls(Visitor.EnvTransform):
def
_handle_simple_function_any
(
self
,
node
,
pos_args
):
def
_handle_simple_function_any
(
self
,
node
,
pos_args
):
"""Transform
"""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
into
for L in LL:
for L in LL:
for x in L:
for x in L:
if
x
:
if
p(x)
:
_result = True
_result = True
break
break
else:
else:
...
...
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