#NEWLINE# def create_meth_element( lh , name , meth , rt , **kw ) : #NEWLINE# #INDENT# rt . name = name #NEWLINE# rt . _return_type_for_method = meth #NEWLINE# if ( meth . __code__ . co_argcount < 2 ) : #NEWLINE# #INDENT# raise Exception ( ( 'Method %s has %d arguments (must have at least 2)' % ( meth , meth . __code__ . co_argcount ) ) ) #NEWLINE# #UNINDENT# return create_field_element ( lh , rt , ** kw )