#NEWLINE# def find( self , k ) : #NEWLINE# #INDENT# 'Return first item with a key == k.  Raise ValueError if not found.' #NEWLINE# i = bisect_left ( self . _keys , k ) #NEWLINE# if ( ( i != len ( self ) ) and ( self . _keys [ i ] == k ) ) : #NEWLINE# #INDENT# return self . _items [ i ] #NEWLINE# #UNINDENT# raise ValueError ( ( 'No item found with key equal to: %r' % ( k , ) ) )