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