# Bug report ```python >>> pathlib.PurePath('foo.jpg').with_stem('').stem '.jpg' ``` The `with_stem()` call should raise `ValueError`, as it's impossible for a filename to have an empty stem and a non-empty suffix. <!-- gh-linked-prs --> ### Linked PRs * gh-114612 * gh-114613 <!-- /gh-linked-prs -->
Bug report
The
with_stem()call should raiseValueError, as it's impossible for a filename to have an empty stem and a non-empty suffix.Linked PRs
pathlib.PurePath.with_stem('')handling of file extensions #114612pathlib._abc.PurePathBase.with_suffix('.ext')handling of stems #114613