def pop(self, index=-1): try: return list.pop(self, index) except IndexError: raise UnpicklingError("unpickling stack underflow")