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

Method suffixes

Lib/pathlib/__init__.py:470–476  ·  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

468
469 @property
470 def suffixes(self):
471 """
472 A list of the final component's suffixes, if any.
473
474 These include the leading periods. For example: ['.tar', '.gz']
475 """
476 return ['.' + ext for ext in self.name.lstrip('.').split('.')[1:]]
477
478 def relative_to(self, other, *, walk_up=False):
479 """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