def __getitem__(self, item):
        if isinstance(item, tuple) and len(item) == 2:
            item, withscores = item
        else:
            withscores = False

        if isinstance(item, slice):
            start, stop = self._convert_slice(item)
        else:
            start = stop = item

        return self.database.zrange(
            self.key,
            start,
            stop,
            withscores=withscores)
I{getpwnam} raises L{KeyError} when passed a username which does not
dataset/ETHPy150Open coleifer/walrus/walrus/containers.py/ZSet.__getitem__--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/python/test/test_fakepwd.py/UserDatabaseTestsMixin.test_noSuchName