#NEWLINE# def __contains__( self , key ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# if ( key in self . _dict ) : #NEWLINE# #INDENT# state = o . _dict [ key ] #NEWLINE# o = state . obj ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# except KeyError : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( o is not None )