Re: [Cython] [cython-users] Re: Cython classes and attribute cache

2013-04-06 Thread Stefan Behnel
Stefan Behnel, 06.04.2013 21:58: > Nils Bruin, 06.04.2013 21:37: >> I can confirm that changing Compiler/TypeSlots.py, line 380 from: >> >> value = "Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES| >> Py_TPFLAGS_HAVE_NEWBUFFER" >> >> to: >> >> value = "Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES| >> Py_TPFLA

Re: [Cython] [cython-users] Re: Cython classes and attribute cache

2013-04-06 Thread Stefan Behnel
Nils Bruin, 06.04.2013 21:37: > I can confirm that changing Compiler/TypeSlots.py, line 380 from: > > value = "Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES| > Py_TPFLAGS_HAVE_NEWBUFFER" > > to: > > value = "Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES| > Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_VERSION

[Cython] Fwd: Re: JIT compilers for Python, what is the latest news?

2013-04-06 Thread Stefan Behnel
Maybe we should update the docs here? Original-Message Subject: Re: JIT compilers for Python, what is the latest news? Date: Sat, 6 Apr 2013 11:23:43 +0100 From: Joshua Landau To: gmane.comp.python.general On 5 April 2013 19:37, Devin Jeanpierre wrote: > On Fri, Apr 5, 2013 at

[Cython] Upcoming cython/numpy breakage with stride checking

2013-04-06 Thread Nathaniel Smith
Hi all, If you build current numpy master with NPY_RELAXED_STRIDES_CHECKING=1 python setup.py install then Cython code using ndarrays starts blowing up, e.g.: # foo.pyx def add_one(array): cdef double[::1] a = array a[0] += 1. return array >>> foo.add_one(np.ascontiguousarray(np.ar