def Pop(self, index=0):
    'Removes and returns the pathspec at the specified index.'
    if (index < 0):
        index += len(self)
    if (index == 0):
        result = self.__class__()
        result.SetRawData(self.GetRawData())
        self.SetRawData(self.nested_path.GetRawData())
    else:
        previous = self[(index - 1)]
        result = previous.nested_path
        previous.nested_path = result.nested_path
    result.nested_path = None
    return result
Removes and returns the pathspec at the specified index.
def Pop(self, index=0):
    
    if (index < 0):
        index += len(self)
    if (index == 0):
        result = self.__class__()
        result.SetRawData(self.GetRawData())
        self.SetRawData(self.nested_path.GetRawData())
    else:
        previous = self[(index - 1)]
        result = previous.nested_path
        previous.nested_path = result.nested_path
    result.nested_path = None
    return result