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