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