Re: [Cython] Surprising behaviour wrt. generated tp_clear and tp_dealloc functions

2013-07-16 Thread Torsten Landschoff
Hi Stefan, On 07/14/2013 10:39 AM, Stefan Behnel wrote: > Torsten Landschoff, 11.07.2013 00:10: >> I attached my current (trivial) patch. Currently I only support a decorator >> >> @cython.noclear >> cdef class ... >> >> to inhibit generation of tp_clear. > Thanks, looks ok to me. Please o

Re: [Cython] Difference between Cython / Python isinstance() vs. NumPy scalars, NumPy bug!

2013-07-16 Thread Yury V. Zaytsev
On Mon, 2013-07-15 at 17:54 +0200, Yury V. Zaytsev wrote: > > 1) What's the best way to get Cython to generate (b) instead of (a)? As it appears, it doesn't really matter, because I've realized that I can import numpy without actually introducing a compile-time dependency on numpy as long as I do