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

Method suffixes

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

112
113 @property
114 def suffixes(self):
115 """
116 A list of the final component's suffixes, if any.
117
118 These include the leading periods. For example: ['.tar', '.gz']
119 """
120 split = self.parser.splitext
121 stem, suffix = split(self.name)
122 suffixes = []
123 while suffix:
124 suffixes.append(suffix)
125 stem, suffix = split(stem)
126 return suffixes[::-1]
127
128 @property
129 def stem(self):

Callers

nothing calls this directly

Calls 2

splitFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected