[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

Re: [Cython] [PATCH] Add a pass transforming Python-style properties in cdef class into Cython-style properties.

2015-11-07 Thread Stefan Behnel
Emmanuel Gil Peyrot schrieb am 03.11.2015 um 07:37: > This makes properties work at all, in cdef classes, and gives them > almost the same features as the “property something:” blocks. Superseded by https://github.com/cython/cython/pull/462 Stefan ___

Re: [Cython] [Bug] Generator already executing

2015-11-07 Thread Stefan Behnel
Carlos Pita schrieb am 06.11.2015 um 20:12: > Say you define: > > def f(*ts): > ts = (t for t in ts) > list(ts) > > def g(*ts): > list(t for t in ts) > > def h(*ts): > list((t for t in ts)) > > Then f(1,2,3) will fail with "Generator already executing" while g(1,2,3) > and h(1,2