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

Method parent

Lib/pathlib/__init__.py:384–391  ·  view source on GitHub ↗

The logical parent of the path.

(self)

Source from the content-addressed store, hash-verified

382
383 @property
384 def parent(self):
385 """The logical parent of the path."""
386 drv = self.drive
387 root = self.root
388 tail = self._tail
389 if not tail:
390 return self
391 return self._from_parsed_parts(drv, root, tail[:-1])
392
393 @property
394 def parents(self):

Callers

nothing calls this directly

Calls 1

_from_parsed_partsMethod · 0.95

Tested by

no test coverage detected