#NEWLINE# def __contains__( self , item ) : #NEWLINE# #INDENT# k = self . _key ( item ) #NEWLINE# i = bisect_left ( self . _keys , k ) #NEWLINE# j = bisect_right ( self . _keys , k ) #NEWLINE# return ( item in self . _items [ i : j ] )