#!/usr/local/bin/python2 class C(object): name = 0 l = [C(), C(), C(), C(), C(), C(), C(), C(), C(), C()] for i in xrange(100000): {c.name: c for c in l}