From: Robert Bradshaw Date: Wed, 17 Apr 2013 05:29:18 +0000 (-0700) Subject: Can't skip subclass tp_new, as that's where the vtable is set up (T808). X-Git-Tag: 0.19rc1~2^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd2103a03fc2424eb020632539e5d99ded4008b6;p=platform%2Fupstream%2Fpython-cython.git Can't skip subclass tp_new, as that's where the vtable is set up (T808). --- diff --git a/Cython/Compiler/TypeSlots.py b/Cython/Compiler/TypeSlots.py index b8d6622..ec89fc4 100644 --- a/Cython/Compiler/TypeSlots.py +++ b/Cython/Compiler/TypeSlots.py @@ -339,7 +339,8 @@ class ConstructorSlot(InternalMethodSlot): self.method = method def slot_code(self, scope): - if scope.parent_type.base_type \ + if self.slot_name != 'tp_new' \ + and scope.parent_type.base_type \ and not scope.has_pyobject_attrs \ and not scope.lookup_here(self.method): # if the type does not have object attributes, it can