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