MCPcopy Index your code
hub / github.com/RustPython/RustPython / parent

Method parent

Lib/pathlib/__init__.py:382–389  ·  view source on GitHub ↗

The logical parent of the path.

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

_from_parsed_partsMethod · 0.95

Tested by

no test coverage detected