Re: [Cython] In-place division in memoryview, ndarray causes compiler error

2012-08-20 Thread Stefan Behnel
Matthew Brett, 15.08.2012 20:38: > For this file: > > > def div1(int[:] A): > A[0] /= 1 > > > or this one: > > > def div2(object[int, ndim=1] A): > A[0] /= 1 > > > I get: > > File > "/Users/mb312/usr/local/lib/python2.7/site-packages/Cython/Compiler/Nodes.py", > line 354, in gen

[Cython] In-place division in memoryview, ndarray causes compiler error

2012-08-15 Thread Matthew Brett
Hi, For this file: def div1(int[:] A): A[0] /= 1 or this one: def div2(object[int, ndim=1] A): A[0] /= 1 I get: File "/Users/mb312/usr/local/lib/python2.7/site-packages/Cython/Compiler/Nodes.py", line 354, in generate_execution_code stat.generate_execution_code(code) File