Commit dd2103a0 authored by Robert Bradshaw's avatar Robert Bradshaw

Can't skip subclass tp_new, as that's where the vtable is set up (T808).

parent dba22361
...@@ -339,7 +339,8 @@ class ConstructorSlot(InternalMethodSlot): ...@@ -339,7 +339,8 @@ class ConstructorSlot(InternalMethodSlot):
self.method = method self.method = method
def slot_code(self, scope): 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.has_pyobject_attrs \
and not scope.lookup_here(self.method): and not scope.lookup_here(self.method):
# if the type does not have object attributes, it can # if the type does not have object attributes, it can
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment