Re: [Cython] Cython code producing different, incorrect results under Python 2.7 (not 3.x) under Cython 0.19

2013-04-24 Thread Josh Warner
Many thanks Nikita, with your advice we've fixed the problem. Regards, Josh ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel

Re: [Cython] Cython code producing different, incorrect results under Python 2.7 (not 3.x) under Cython 0.19

2013-04-24 Thread Nikita Nemkin
On Wed, 24 Apr 2013 13:33:46 +0600, Nikita Nemkin wrote: Update: this is not a Cython bug. _mcp.pyx declares #cython: wraparound=False, any negative index is expected to fail. It worked previously because Cython was using PySequence_GetSlice which of course is not sensitive to Cython directives.

Re: [Cython] Cython code producing different, incorrect results under Python 2.7 (not 3.x) under Cython 0.19

2013-04-24 Thread Nikita Nemkin
On Wed, 24 Apr 2013 12:19:36 +0600, Stefan Behnel wrote: The bug is here (at least one of them): https://github.com/scikit-image/scikit-image/blob/master/skimage/graph/_mcp.pyx#L179 "shape[:-1]" returns incorrect result: input (8, 8), expected output (8,), actual output (). I guess that means