#NEWLINE# def dump( co ) : #NEWLINE# #INDENT# 'Print out a text representation of a code object.' #NEWLINE# for attr in [ 'name' , 'argcount' , 'kwonlyargcount' , 'names' , 'varnames' , 'cellvars' , 'freevars' , 'nlocals' , 'flags' ] : #NEWLINE# #INDENT# print ( ( '%s: %s' % ( attr , getattr ( co , ( 'co_' + co ) ) ) ) ) #NEWLINE# #UNINDENT# print ( 'consts:' , tuple ( consts ( co . co_consts ) ) )