GH-114610: Fix pathlib._abc.PurePathBase.with_suffix('.ext') handling of stems#114613
GH-114610: Fix pathlib._abc.PurePathBase.with_suffix('.ext') handling of stems#114613barneygale merged 3 commits intopython:mainfrom
pathlib._abc.PurePathBase.with_suffix('.ext') handling of stems#114613Conversation
…handling of stems
Raise `ValueError` if `with_suffix('.ext')` is called on a path without a
stem. Paths may only have a non-empty suffix if they also have a non-empty
stem.
ABC-only bugfix; no effect on public classes.
|
|
|
…handling of stems (python#114613) Raise `ValueError` if `with_suffix('.ext')` is called on a path without a stem. Paths may only have a non-empty suffix if they also have a non-empty stem. ABC-only bugfix; no effect on public classes.
Raise
ValueErrorifwith_suffix('.ext')is called on a path without a stem. Paths may only have a non-empty suffix if they also have a non-empty stem.ABC-only bugfix; no effect on public classes.
pathlib.PurePath.with_stem('')promotes file extension to stem #114610