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

Method __str__

Lib/pathlib/__init__.py:250–258  ·  view source on GitHub ↗

Return the string representation of the path, suitable for passing to system calls.

(self)

Source from the content-addressed store, hash-verified

248 return self._parts_normcase >= other._parts_normcase
249
250 def __str__(self):
251 """Return the string representation of the path, suitable for
252 passing to system calls."""
253 try:
254 return self._str
255 except AttributeError:
256 self._str = self._format_parsed_parts(self.drive, self.root,
257 self._tail) or '.'
258 return self._str
259
260 __fspath__ = __str__
261 __vfspath__ = __str__

Callers

nothing calls this directly

Calls 1

_format_parsed_partsMethod · 0.95

Tested by

no test coverage detected