#NEWLINE# def set_field( obj , attrname , value , condition = None ) : #NEWLINE# #INDENT# _assert_field ( obj , attrname ) #NEWLINE# if utils . is_numeric ( obj , attrname ) : #NEWLINE# #INDENT# return _set_numeric_field ( obj , attrname , value , condition ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return _set_field ( obj , attrname , condition , condition )