<s> import sys <EOL> import traceback <EOL> def f12 ( ) : <EOL> print <EOL> print "<STR_LIT>" <EOL> print "<STR_LIT>" , sys . exc_info ( ) [ <NUM_LIT:0> ] <EOL> def g ( ) : <EOL> print "<STR_LIT>" , sys . exc_info ( ) [ <NUM_LIT:0> ] <EOL> yield <NUM_LIT:1> <EOL> print "<STR_LIT>" , sys . exc_info ( ) [ <NUM_LIT:0> ] <EOL> try : <EOL> raise KeyError ( ) <EOL> except : <EOL> traceback . print_stack ( file = sys . stdout ) <EOL> pass <EOL> print "<STR_LIT>" , sys . exc_info ( ) [ <NUM_LIT:0> ] <EOL> yield <NUM_LIT:2> <EOL> print list ( g ( ) ) <EOL> try : <EOL> raise AttributeError ( ) <EOL> except : <EOL> pass <EOL> i = g ( ) <EOL> i . next ( ) <EOL> print list ( g ( ) ) <EOL> try : <EOL> <NUM_LIT:1> / <NUM_LIT:0> <EOL> except : <EOL> print "<STR_LIT>" , sys . exc_info ( ) [ <NUM_LIT:0> ] <EOL> i . next ( ) <EOL> print "<STR_LIT>" , sys . exc_info ( ) [ <NUM_LIT:0> ] <EOL> list ( i ) <EOL> f12 ( ) </s>
