summaryrefslogtreecommitdiff
path: root/Cython/Compiler/MemoryView.py
diff options
context:
space:
mode:
authorRobert Bradshaw <robertwb@gmail.com>2014-10-17 00:27:02 -0700
committerRobert Bradshaw <robertwb@gmail.com>2014-10-17 00:27:02 -0700
commit63c07e29cf7d057d95e08d5b675fe52117cb4fcf (patch)
tree6729a5b5adabd358008d2a38eb8164679aa89519 /Cython/Compiler/MemoryView.py
parentb7d804185cbd5075a161214bd3ec8e2173741da8 (diff)
parent99e68228517e85bfc87e654dc5bceab7767cb3b9 (diff)
downloadcython-63c07e29cf7d057d95e08d5b675fe52117cb4fcf.tar.gz
Merge branch 'master' into ctuple
Conflicts: CHANGES.rst
Diffstat (limited to 'Cython/Compiler/MemoryView.py')
-rw-r--r--Cython/Compiler/MemoryView.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Cython/Compiler/MemoryView.py b/Cython/Compiler/MemoryView.py
index face6c275..49ea3178d 100644
--- a/Cython/Compiler/MemoryView.py
+++ b/Cython/Compiler/MemoryView.py
@@ -439,13 +439,16 @@ def get_is_contig_utility(c_contig, ndim):
return utility
+
def copy_src_to_dst_cname():
return "__pyx_memoryview_copy_contents"
+
def verify_direct_dimensions(node):
for access, packing in node.type.axes:
if access != 'direct':
- error(self.pos, "All dimensions must be direct")
+ error(node.pos, "All dimensions must be direct")
+
def copy_broadcast_memview_src_to_dst(src, dst, code):
"""
@@ -662,7 +665,7 @@ def get_axes_specs(env, axes):
if entry.name in view_constant_to_access_packing:
axes_specs.append(view_constant_to_access_packing[entry.name])
else:
- raise CompilerError(axis.step.pos, INVALID_ERR)
+ raise CompileError(axis.step.pos, INVALID_ERR)
else:
raise CompileError(axis.step.pos, INVALID_ERR)