diff options
author | Mark Florisson <markflorisson88@gmail.com> | 2011-07-20 14:06:37 +0200 |
---|---|---|
committer | Mark Florisson <markflorisson88@gmail.com> | 2011-09-30 14:55:16 +0100 |
commit | 06c02d31af6daef32f152cc9d8575d53c74a53b7 (patch) | |
tree | 34e9ed9f22b1cc80002db495836974236cb0ed93 /Cython/Compiler/CythonScope.py | |
parent | 09e33cb223870e0a785518890119c68323a79d96 (diff) | |
download | cython-06c02d31af6daef32f152cc9d8575d53c74a53b7.tar.gz |
py23 compat
Diffstat (limited to 'Cython/Compiler/CythonScope.py')
-rw-r--r-- | Cython/Compiler/CythonScope.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/CythonScope.py b/Cython/Compiler/CythonScope.py index 841a3fe7c..84205a5b5 100644 --- a/Cython/Compiler/CythonScope.py +++ b/Cython/Compiler/CythonScope.py @@ -346,7 +346,7 @@ cdef class array: self.len = stride * self.itemsize elif mode == "c": idx = self.ndim-1; stride = itemsize - for dim in reversed(shape): + for dim in shape[::-1]: self.strides[idx] = stride int_dim = <Py_ssize_t>dim stride = stride * int_dim |