>>> def f(): ... try: ... print 1 ... break ... print 2 ... except: ... print 3 >>> f()