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

2014-01-08 Thread Simon Jagoe
bc.ABCMeta @abc.abstractmethod def foo(self): pass b = B() # No exception. Thanks, Simon From 80d518908ad3f2052e4d9e7fcf8101fc5d75280e Mon Sep 17 00:00:00 2001 From: Simon Jagoe Date: Wed, 8 Jan 2014 20:00:48 + Subject: [PATCH] BUG: Call PyBaseObject_Type.tp_new instead o

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

2014-01-10 Thread Simon Jagoe
Hi Stefan, > 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 should be rare enough. > > Obviously requires some user side testing to see if it breaks any other > code... Thanks for looking at this. I am

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

2014-01-10 Thread Simon Jagoe
Thanks, Stefan. Let me know if I can help in any way. I will track Cython master while I continue my port from C to Cython. On 10 January 2014 09:52, Stefan Behnel wrote: > Stefan Behnel, 10.01.2014 10:11: >> Simon Jagoe, 09.01.2014 14:04: >>>> Looking at the code in Py3,