def clone(self): ''' @see: Path.clone ''' return PathExtended(self.parent.clone(), [match.clone() for match in self.matchesOwned], self.node, self.index)
def clone(self): ''' Clones the path and all match content, any action on the cloned path will node affect the original path. @return: Path The cloned path. ''' return Path([match.clone() for match in self.matches], self.node)
def clone(self): """ Clones the path and all match content, any action on the cloned path will node affect the original path. @return: Path The cloned path. """ return Path(self.resourcesLocator, [match.clone() for match in self.matches], self.node)