def __delitem__(self, item):
        if isinstance(item, slice):
            start = item.start or 0
            stop = item.stop or -1
            if stop > 0:
                stop -= 1
            return self.database.ltrim(self.key, start, stop)
        elif isinstance(item, int):
            item = self[item]
            if item is None:
                return
        return self.database.lrem(self.key, item)
Accessor function for read-only 'den' attribute of Rat.
dataset/ETHPy150Open coleifer/walrus/walrus/containers.py/List.__delitem__--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_binop.py/Rat._get_den