code: def pull(self, *, index=None):
          
          item = self.__list.pop(index)
          name = getattr(item, 'name', None)
          if name is not None:
              del self.__dict[name]
          return item
docs: Pull item from the chain.