#NEWLINE# def has_value( self , ctx ) : #NEWLINE# #INDENT# '\n        returns True if a cached value exists in this context.\n        ' #NEWLINE# node_state = cython . declare ( NodeState ) #NEWLINE# try : #NEWLINE# #INDENT# node_state = ctx . _states [ ctx . _id_obj ] #NEWLINE# return node_state . has_value #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# return False