MCPcopy Index your code
hub / github.com/python/cpython / _from_parsed_parts

Method _from_parsed_parts

Lib/pathlib/__init__.py:271–276  ·  view source on GitHub ↗
(self, drv, root, tail)

Source from the content-addressed store, hash-verified

269 return cls.parser.sep.join(tail)
270
271 def _from_parsed_parts(self, drv, root, tail):
272 path = self._from_parsed_string(self._format_parsed_parts(drv, root, tail))
273 path._drv = drv
274 path._root = root
275 path._tail_cached = tail
276 return path
277
278 def _from_parsed_string(self, path_str):
279 path = self.with_segments(path_str)

Callers 6

parentMethod · 0.95
with_nameMethod · 0.95
relative_toMethod · 0.95
__getitem__Method · 0.80
absoluteMethod · 0.80
expanduserMethod · 0.80

Calls 2

_from_parsed_stringMethod · 0.95
_format_parsed_partsMethod · 0.95

Tested by

no test coverage detected