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

Method suffixes

Lib/pathlib/types.py:133–145  ·  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

131
132 @property
133 def suffixes(self):
134 """
135 A list of the final component's suffixes, if any.
136
137 These include the leading periods. For example: ['.tar', '.gz']
138 """
139 split = self.parser.splitext
140 stem, suffix = split(self.name)
141 suffixes = []
142 while suffix:
143 suffixes.append(suffix)
144 stem, suffix = split(stem)
145 return suffixes[::-1]
146
147 @property
148 def stem(self):

Callers

nothing calls this directly

Calls 2

splitFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected