def example_exc_handler(tries_remaining, exception, delay):
 print >>sys.stderr, ("Caught '%s', %d tries remaining, sleeping for %s seconds" % (exception, tries_remaining, delay))

def example_exc_handler ( tries_remaining , exception , delay ) : print >> sys . stderr , ( "Caught '%s', %d tries remaining, sleeping for %s seconds" % ( exception , tries_remaining , delay ) )
example exception handler; prints a warning to stderr .