diff options
author | Mark Florisson <markflorisson88@gmail.com> | 2012-02-16 21:44:58 +0000 |
---|---|---|
committer | Mark Florisson <markflorisson88@gmail.com> | 2012-02-20 20:08:48 +0000 |
commit | dd08f821d7d8c743785eb5c2085a850c4be8af23 (patch) | |
tree | 69b641ad3fc9f625879f0bfcc8d78e6e7dee150d /Cython/Compiler/MemoryView.py | |
parent | b5009ce5c941a39105bea64bc9479baf55b7b860 (diff) | |
download | cython-dd08f821d7d8c743785eb5c2085a850c4be8af23.tar.gz |
Allow inter-module memoryview buffer acquiring for py < 2.6
Diffstat (limited to 'Cython/Compiler/MemoryView.py')
-rw-r--r-- | Cython/Compiler/MemoryView.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Cython/Compiler/MemoryView.py b/Cython/Compiler/MemoryView.py index 023aeeca5..8e7121973 100644 --- a/Cython/Compiler/MemoryView.py +++ b/Cython/Compiler/MemoryView.py @@ -6,6 +6,7 @@ from Code import UtilityCode, TempitaUtilityCode from UtilityCode import CythonUtilityCode import Buffer import PyrexTypes +import ModuleNode START_ERR = "Start must not be given." STOP_ERR = "Axis specification only allowed in the 'step' slot." @@ -923,7 +924,8 @@ view_utility_code = load_memview_cy_utility( memviewslice_init_code, is_contig_utility, overlapping_utility, - copy_contents_new_utility], + copy_contents_new_utility, + ModuleNode.capsule_utility_code], ) view_utility_whitelist = ('array', 'memoryview', 'array_cwrapper', 'generic', 'strided', 'indirect', 'contiguous', |