#NEWLINE# @ query #NEWLINE# def __contains__( self , member ) : #NEWLINE# #INDENT# ':keyword:`in` operator.  Tests whether the set contains\n        the given operand ``member``.\n\n        :param member: the value to test\n        :returns: ``True`` if the sorted set contains the given\n                  operand ``member``\n        :rtype: :class:`bool`\n\n        .. note::\n\n           This method internally uses :redis:`ZSCORE` command.\n\n        ' #NEWLINE# try : #NEWLINE# #INDENT# element = self . value_type . encode ( member ) #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return ( self . session . client . zscore ( self . key , element ) is not None )