Re: [Cython] bug in doc Tutorials/Working with NumPy

2015-11-10 Thread Stepan Kasal
Hello, On Mon, Nov 09, 2015 at 09:44:15PM -0800, Robert Bradshaw wrote: > I heartily agree that using unsigned types is the source of much > surprising pain, we shouldn't be recommending it: great, thanks a lot for updating the dev doc instantly. > There's two directives: wraparound and boundsch

Re: [Cython] bug in doc Tutorials/Working with NumPy

2015-11-09 Thread Robert Bradshaw
On Fri, Nov 6, 2015 at 7:18 AM, Stepan Kasal wrote: > Hello, > > I was learning Cython from this tutorial when I noticed a glitch: > > Near the end, after boundscheck False, some variables are changed to > unsigned int. But this has unexpected consequences: variables t_from and such > are not det

[Cython] bug in doc Tutorials/Working with NumPy

2015-11-07 Thread Stepan Kasal
Hello, I was learning Cython from this tutorial when I noticed a glitch: Near the end, after boundscheck False, some variables are changed to unsigned int. But this has unexpected consequences: variables t_from and such are not determined correctly, as one of the arguments is negative, but gets