[Cython] Broken C++ compile test

2012-12-07 Thread Stefan Behnel
Hi, the question by Czarek Tomczak on the users list made me stumble into this old C++ test: https://github.com/cython/cython/blob/master/tests/compile/cpp_operators.pyx It's completely broken and only failed to fail because it was never executed. Apparently, the test runner shadowed it with the

Re: [Cython] Broken C++ compile test

2012-12-07 Thread Stefan Behnel
Stefan Behnel, 07.12.2012 09:13: > the question by Czarek Tomczak on the users list made me stumble into this > old C++ test: > > https://github.com/cython/cython/blob/master/tests/compile/cpp_operators.pyx > > It's completely broken and only failed to fail because it was never > executed. Appare

[Cython] change strides attribute

2012-12-07 Thread Sebastian Berg
Hey, The current numpy contiguous flags are relatively restrictive. This means that for example an array of `shape == (1,3,1)` and `itemsize == 1` is C-Contiguous if `strides == (3,1,1)` and F-Contiguous if `strides == (1,1,3)`. It would simplify flags settings and avoid copies here and there and

Re: [Cython] Broken C++ compile test

2012-12-07 Thread Robert Bradshaw
On Fri, Dec 7, 2012 at 12:48 AM, Stefan Behnel wrote: > Stefan Behnel, 07.12.2012 09:13: >> the question by Czarek Tomczak on the users list made me stumble into this >> old C++ test: >> >> https://github.com/cython/cython/blob/master/tests/compile/cpp_operators.pyx >> >> It's completely broken an