>>> from pathlib import Path
>>> p = Path('/etc/swift/object.ring.gz')
>>> p.suffix
'.gz'
>>> p.suffixes
['.ring', '.gz']
>>> p.stem
'object.ring'
>>> p.stems
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'PosixPath' object has no attribute 'stems'
I think it would have been nice if .stems = ['object', '.ring']
The idiomatic answer for this persons definition of "true" stem:
... seemed to [ab]use with_suffix(‘’), but .stems[0] might be more obvious.
What do you think?