File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -185,8 +185,8 @@ def name(self):
185
185
@property
186
186
def suffix (self ):
187
187
# type: () -> Text
188
- """`str`: the final resource extension (including dot), or an
189
- empty string if there is no extension .
188
+ """`str`: the last component of the name (including dot), or an
189
+ empty string if there is no suffix .
190
190
191
191
Example:
192
192
>>> info
@@ -203,7 +203,7 @@ def suffix(self):
203
203
@property
204
204
def suffixes (self ):
205
205
# type: () -> List[Text]
206
- """`List`: a list of the resource's extensions .
206
+ """`List`: a list of any suffixes in the name .
207
207
208
208
Example:
209
209
>>> info
@@ -219,7 +219,15 @@ def suffixes(self):
219
219
@property
220
220
def stem (self ):
221
221
# type: () -> Text
222
- """`str`: the name minus any extensions."""
222
+ """`str`: the name minus any suffixes.
223
+
224
+ Example:
225
+ >>> info
226
+ <info 'foo.tar.gz'>
227
+ >>> info.stem
228
+ 'foo'
229
+
230
+ """
223
231
name = self .get ('basic' , 'name' )
224
232
if name .startswith ('.' ):
225
233
return name
You can’t perform that action at this time.
0 commit comments