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
Gwenaël Samain
cython
Commits
23318496
Commit
23318496
authored
Jan 17, 2015
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mattjj-fix-vectors-of-memviews'
parents
9dd1892b
35dfa25d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+1
-1
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+13
-0
No files found.
Cython/Compiler/ExprNodes.py
View file @
23318496
...
...
@@ -10301,7 +10301,7 @@ class CondExprNode(ExprNode):
if
self
.
true_val
.
type
.
is_pyobject
or
self
.
false_val
.
type
.
is_pyobject
:
self
.
true_val
=
self
.
true_val
.
coerce_to
(
self
.
type
,
env
)
self
.
false_val
=
self
.
false_val
.
coerce_to
(
self
.
type
,
env
)
if
self
.
type
==
PyrexTypes
.
error_type
:
if
self
.
type
.
is_error
:
self
.
type_error
()
return
self
...
...
Cython/Compiler/PyrexTypes.py
View file @
23318496
...
...
@@ -552,6 +552,15 @@ class MemoryViewSliceType(PyrexType):
if
not
self
.
dtype
.
is_fused
:
self
.
dtype_name
=
MemoryView
.
mangle_dtype_name
(
self
.
dtype
)
def
__hash__
(
self
):
return
hash
(
self
.
__class__
)
^
hash
(
self
.
dtype
)
^
hash
(
tuple
(
self
.
axes
))
def
__eq__
(
self
,
other
):
if
isinstance
(
other
,
BaseType
):
return
self
.
same_as_resolved_type
(
other
)
else
:
return
False
def
same_as_resolved_type
(
self
,
other_type
):
return
((
other_type
.
is_memoryviewslice
and
self
.
dtype
.
same_as
(
other_type
.
dtype
)
and
...
...
@@ -670,6 +679,10 @@ class MemoryViewSliceType(PyrexType):
return
True
def
specialization_name
(
self
):
return
super
(
MemoryViewSliceType
,
self
).
specialization_name
()
\
+
'_'
+
self
.
specialization_suffix
()
def
specialization_suffix
(
self
):
return
"%s_%s"
%
(
self
.
axes_to_name
(),
self
.
dtype_name
)
...
...
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