<s> import sys <EOL> import traceback <EOL> try : <EOL> <NUM_LIT:1> / <NUM_LIT:0> <EOL> except : <EOL> traceback . print_exc ( file = sys . stdout ) <EOL> def f ( ) : <EOL> traceback . print_exc ( file = sys . stdout ) <EOL> try : <EOL> <NUM_LIT:1> / <NUM_LIT:0> <EOL> except : <EOL> f ( ) <EOL> traceback . print_exc ( file = sys . stdout ) <EOL> try : <EOL> <NUM_LIT:1> / <NUM_LIT:0> <EOL> except : <EOL> a , b , c = sys . exc_info ( ) <EOL> try : <EOL> [ ] [ <NUM_LIT:1> ] <EOL> except : <EOL> pass <EOL> traceback . print_exc ( file = sys . stdout ) <EOL> try : <EOL> raise a , b , c <EOL> except : <EOL> traceback . print_exc ( file = sys . stdout ) <EOL> traceback . print_exc ( file = sys . stdout ) <EOL> def f ( ) : <EOL> <NUM_LIT:1> / <NUM_LIT:0> <EOL> try : <EOL> f ( ) <EOL> except : <EOL> traceback . print_exc ( file = sys . stdout ) <EOL> def f ( ) : <EOL> def g ( ) : <EOL> <NUM_LIT:1> / <NUM_LIT:0> <EOL> g ( ) <EOL> try : <EOL> f ( ) <EOL> except : <EOL> a , b , t = sys . exc_info ( ) <EOL> traceback . print_tb ( t , limit = <NUM_LIT:1> ) <EOL> try : <EOL> <NUM_LIT:1> / <NUM_LIT:0> <EOL> except AttributeError : <EOL> pass <EOL> except : <EOL> traceback . print_exc ( file = sys . stdout ) <EOL> try : <EOL> try : <EOL> <NUM_LIT:1> / <NUM_LIT:0> <EOL> except AttributeError : <EOL> pass <EOL> except : <EOL> traceback . print_exc ( file = sys . stdout ) <EOL> try : <EOL> try : <EOL> <NUM_LIT:1> / <NUM_LIT:0> <EOL> except : <EOL> raise <EOL> except : <EOL> traceback . print_exc ( file = sys . stdout ) <EOL> try : <EOL> raise AttributeError ( ) <EOL> except : <EOL> traceback . print_exc ( file = sys . stdout ) <EOL> def f ( ) : <EOL> <NUM_LIT:1> / <NUM_LIT:0> <EOL> try : <EOL> f ( ) <EOL> except : <EOL> traceback . print_exc ( file = sys . stdout ) <EOL> a , b , t = sys . exc_info ( ) <EOL> try : <EOL> raise a , b , None <EOL> except : <EOL> traceback . print_exc ( file = sys . stdout ) <EOL> def f ( n ) : <EOL> if n : <EOL> return f ( n - <NUM_LIT:1> ) <EOL> traceback . print_stack ( file = sys . stdout ) <EOL> print <EOL> return traceback . format_stack ( ) <EOL> print <EOL> print '<STR_LIT>' . join ( f ( <NUM_LIT:5> ) ) <EOL> print <EOL> print "<STR_LIT>" </s>
