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

Method root

Lib/pathlib/__init__.py:353–359  ·  view source on GitHub ↗

The root of the path, if any.

(self)

Source from the content-addressed store, hash-verified

351
352 @property
353 def root(self):
354 """The root of the path, if any."""
355 try:
356 return self._root
357 except AttributeError:
358 self._drv, self._root, self._tail_cached = self._parse_path(self._raw_path)
359 return self._root
360
361 @property
362 def _tail(self):

Callers

nothing calls this directly

Calls 1

_parse_pathMethod · 0.95

Tested by

no test coverage detected