#!/usr/local/bin/python2 class C(object): def __init__(self): self._a = 0 class C2(C): __slots__ = ('a') c = C2() c.a = 1