#NEWLINE# def __delitem__( self , member ) : #NEWLINE# #INDENT# "Removes the ``member``.\n\n        :param member: the member to delete\n        :raises exceptions.TypeError:\n           if the given ``member`` is not acceptable by\n           its :attr:`value_type`\n        :raises exceptions.KeyError:\n           if there's no such ``member``\n\n        .. note::\n\n           It is directly mapped to Redis :redis:`ZREM` command\n           when it's not on transaction.  If it's used with\n           transaction, it internally uses :redis:`ZSCORE` and\n           :redis:`ZREM` commands.\n\n        " #NEWLINE# element = self . value_type . encode ( member ) #NEWLINE# session = self . session #NEWLINE# if ( session . current_transaction is None ) : #NEWLINE# #INDENT# exists = session . client . zrem ( self . key , element ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# session . mark_query ( ) #NEWLINE# exists = ( session . client . zscore ( self . key , element ) is not None ) #NEWLINE# if exists : #NEWLINE# #INDENT# session . mark_manipulative ( ) #NEWLINE# session . client . zrem ( self . key , element ) #NEWLINE# #UNINDENT# #UNINDENT# if ( not exists ) : #NEWLINE# #INDENT# raise KeyError ( member )