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

Method suffixes

Lib/pathlib/__init__.py:468–474  ·  view source on GitHub ↗

A list of the final component's suffixes, if any. These include the leading periods. For example: ['.tar', '.gz']

(self)

Source from the content-addressed store, hash-verified

466
467 @property
468 def suffixes(self):
469 """
470 A list of the final component's suffixes, if any.
471
472 These include the leading periods. For example: ['.tar', '.gz']
473 """
474 return ['.' + ext for ext in self.name.lstrip('.').split('.')[1:]]
475
476 def relative_to(self, other, *, walk_up=False):
477 """Return the relative path to another path identified by the passed

Callers

nothing calls this directly

Calls 2

splitMethod · 0.45
lstripMethod · 0.45

Tested by

no test coverage detected