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

Method parts

Lib/pathlib/types.py:187–193  ·  view source on GitHub ↗

An object providing sequence-like access to the components in the filesystem path.

(self)

Source from the content-addressed store, hash-verified

185
186 @property
187 def parts(self):
188 """An object providing sequence-like access to the
189 components in the filesystem path."""
190 anchor, parts = _explode_path(vfspath(self), self.parser.split)
191 if anchor:
192 parts.append(anchor)
193 return tuple(reversed(parts))
194
195 def joinpath(self, *pathsegments):
196 """Combine this path with one or several arguments, and return a

Callers

nothing calls this directly

Calls 3

vfspathFunction · 0.90
_explode_pathFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected