#!/usr/bin/env python x = 2 # This statement gets skipped the 2nd time around q = 1 # This statement gets skipped too! try: # tracer() will exit here if z == 0 and line_no == 4 y = z except NameError: z = 0 print "When tracing via tracer(), f_lineno will be set to 2 here." print "You should never get here when tracing"