Primary
PurePath.suffix ⚬|Documentation|1st|20260122195929-00-⌔
pathlib — Object-oriented filesystem paths — Python 3.14.2 documentation#pathlib.PurePath.suffix
PurePath.suffixThe last dot-separated portion of the final component, if any:
>>> PurePosixPath('my/library/setup.py').suffix '.py' >>> PurePosixPath('my/library.tar.gz').suffix '.gz' >>> PurePosixPath('my/library').suffix ''This is commonly called the file extension.
Changed in version 3.14: A single dot (”
.”) is considered a valid suffix.Printed 2026-06-28.
(echo:: @ ᯤ)
Link to original
Secondary
• • •