#NEWLINE# def _tell( self , k , v ) : #NEWLINE# #INDENT# 'Add fact k=v to the knowledge base.\n\n        Returns True if the KB has actually been updated, False otherwise.\n        ' #NEWLINE# if ( ( k in self ) and ( self [ k ] is not None ) ) : #NEWLINE# #INDENT# if ( self [ k ] == v ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise InconsistentAssumptions ( self , self , v ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self [ k ] = v #NEWLINE# return True