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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
f2d9322f
Commit
f2d9322f
authored
Mar 23, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix usages of all()/any() after deleting fallback implementations in Utils.py
parent
9f1f8025
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+1
-2
Cython/Compiler/TypeInference.py
Cython/Compiler/TypeInference.py
+1
-1
No files found.
Cython/Compiler/ExprNodes.py
View file @
f2d9322f
...
...
@@ -3305,8 +3305,7 @@ class IndexNode(ExprNode):
for
pos
,
specific_type
,
fused_type
in
zip
(
positions
,
specific_types
,
fused_types
):
if
not
Utils
.
any
([
specific_type
.
same_as
(
t
)
for
t
in
fused_type
.
types
]):
if
not
any
([
specific_type
.
same_as
(
t
)
for
t
in
fused_type
.
types
]):
return
error
(
pos
,
"Type not in fused type"
)
if
specific_type
is
None
or
specific_type
.
is_error
:
...
...
Cython/Compiler/TypeInference.py
View file @
f2d9322f
...
...
@@ -449,7 +449,7 @@ class SimpleAssignmentTypeInferer(object):
entry_type
=
py_object_type
if
assmts_resolved
.
issuperset
(
entry
.
cf_assignments
):
types
=
[
assmt
.
inferred_type
for
assmt
in
entry
.
cf_assignments
]
if
types
and
Utils
.
all
(
types
):
if
types
and
all
(
types
):
entry_type
=
spanning_type
(
types
,
entry
.
might_overflow
,
entry
.
pos
)
inferred
.
add
(
entry
)
...
...
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