#!/usr/local/bin/python2 l = [] for i in xrange(1000000): try: getattr(l, 'append') except AttributeError: pass