#!/usr/local/bin/python2 from xml.etree.ElementTree import QName class C(list): __slots__ = ('a',) c = C() c.a = 1