#!/usr/local/bin/python2 class B(object): pass class C(B): __slots__ = () def __new__(cls): self = super(B, cls).__new__(cls) self.a = 5 return self c = C() print c.a c.a = 8