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
eee370b0
Commit
eee370b0
authored
Oct 22, 2011
by
Mark Florisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disallow pointer dtypes in memoryview slices
parent
1165829f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Cython/Compiler/MemoryView.py
Cython/Compiler/MemoryView.py
+0
-1
tests/errors/memview_declarations.pyx
tests/errors/memview_declarations.pyx
+4
-0
No files found.
Cython/Compiler/MemoryView.py
View file @
eee370b0
...
...
@@ -171,7 +171,6 @@ def valid_memslice_dtype(dtype):
return
(
dtype
.
is_error
or
dtype
.
is_ptr
or
dtype
.
is_numeric
or
dtype
.
is_struct
or
dtype
.
is_pyobject
or
...
...
tests/errors/memview_declarations.pyx
View file @
eee370b0
...
...
@@ -40,6 +40,9 @@ cdef int[:, ::view.contiguous, ::view.indirect_contiguous] a6
#cdef int[::view.generic_contiguous, ::view.contiguous] a7
#cdef int[::view.contiguous, ::view.generic_contiguous] a8
ctypedef
int
*
intp
cdef
intp
[:,
:]
myarray
# These are VALID
cdef
int
[::
view
.
indirect_contiguous
,
::
view
.
contiguous
]
a9
...
...
@@ -61,4 +64,5 @@ _ERRORS = u'''
31:9: Dimension may not be contiguous
37:9: Only one direct contiguous axis may be specified.
38:9:Only dimensions 3 and 2 may be contiguous and direct
44:10: Invalid base type for memoryview slice
'''
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