[Cython] cdef class tp_new should call PyBaseObject_Type.tp_new?

2014-01-08 Thread Simon Jagoe
Hi all, I recently posted to the cython-users list about this problem. This email is to submita potential patch to fix the issue. The issue is as follows: At Enthought we are busy porting Traits (http://github.com/enthought/traits) from C to Cython. An issue has come up that that prevents class

Re: [Cython] cdef class tp_new should call PyBaseObject_Type.tp_new?

2014-01-08 Thread Stefan Behnel
Simon Jagoe, 08.01.2014 21:17: > I recently posted to the cython-users list about this problem. This > email is to submita potential patch to fix the issue. Looking at the code in Py3, ISTM that it would be sufficient to do this iff (t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) != 0 which shoul