[Cython] breaking news in Py3.4: inspect.isfunction(cyfunction) == True

2014-01-31 Thread Stefan Behnel
Hi, Yury Selivanov just committed a revised version of a patch I wrote for CPython's inspect module last year. It now accepts Cython's function type as Python function, based on the function-like attributes that it exports. http://hg.python.org/cpython/rev/32a660a52aae That means that things lik

Re: [Cython] memoryview refcount error

2014-01-31 Thread Syam Gadde
I've done some more digging here. It turns out the test case for this bug is simpler than I thought: import numpy cimport numpy def testfunc(): a = numpy.arange(12).reshape([3,4]) cdef numpy.int_t[:,:] a_view = a cdef numpy.int_t[:,:] b = a_view[:,:].T testfunc() The core issue is t

[Cython] Sage build problem

2014-01-31 Thread Stefan Behnel
Hi, There's some kind of C++ enum issue in the Sage build. Generated code in sage/libs/ppl.cpp: """ static PyObject *__pyx_pf_4sage_4libs_3ppl_11MIP_Problem_30solve( struct __pyx_obj_4sage_4libs_3ppl_MIP_Problem *__pyx_v_self) { enum Parma_Polyhedra_Library::PPL_MIP_Problem_Status

[Cython] flow control analysis of expressions (was: segfault due to using DECREF instead of XDECREF)

2014-01-31 Thread Stefan Behnel
[looks like the mailing list server failed to accept this, so here it is again] Victor Makarov, 29.01.2014 18:35: > 2014/1/29 Stefan Behnel: >> Victor Makarov, 26.01.2014 20:15: >>> Fixed here >>> https://github.com/cython/cython/commit/9f7256fd07961b912d2224d995533c821441381b >> >> Hmm, it's unf

[Cython] 0.20.1 bug fix release (was: Broken list multiplication)

2014-01-31 Thread Stefan Behnel
Stefan Behnel, 30.01.2014 17:40: > Robert Bradshaw, 29.01.2014 19:10: >> Ouch. Between this and the other Sage issue, I feel a small point >> release coming up. Any other bug fixes we should get in? > > I have a couple of pending requests for others to test lxml on Windows and > maybe even PyPy, s