🔵 🔵 🔵


Primary

၊၊||၊|။

PurePath.stem ⚬|Documentation|1st|20260122195929-00-⌔

pathlib — Object-oriented filesystem paths — Python 3.14.2 documentation#pathlib.PurePath.stem

PurePath.stem

The final path component, without its suffix:

>>> PurePosixPath('my/library.tar.gz').stem
'library.tar'
>>> PurePosixPath('my/library.tar').stem
'library'
>>> PurePosixPath('my/library').stem
'library'

Changed in version 3.14: A single dot (” . ”) is considered a valid suffix.

Printed 2026-06-28.

(echo:: @ )

Link to original

Secondary

• • •