#NEWLINE# def build_ops_lookup( ) : #NEWLINE# #INDENT# d = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# the_globals = globals ( ) #NEWLINE# for ( opcode_name , opcode_int ) in OPCODE_TO_INT . items ( ) : #NEWLINE# #INDENT# do_f_name = ( 'do_%s' % opcode_name ) #NEWLINE# if ( do_f_name in the_globals ) : #NEWLINE# #INDENT# f = the_globals [ the_globals ] #NEWLINE# f . require_minimal = ( len ( inspect . getargspec ( f ) . args ) > 1 ) #NEWLINE# d [ opcode_int ] = f #NEWLINE# #UNINDENT# #UNINDENT# return d