Skip to content

GH-128520: pathlib ABCs: fix with_name() handling of empty names - #130964

Closed
barneygale wants to merge 1 commit into
python:mainfrom
barneygale:gh-128520-with-name-compat
Closed

GH-128520: pathlib ABCs: fix with_name() handling of empty names#130964
barneygale wants to merge 1 commit into
python:mainfrom
barneygale:gh-128520-with-name-compat

Conversation

@barneygale

@barneygalebarneygale commented Mar 7, 2025

Copy link
Copy Markdown
Contributor

Raise ValueError from pathlib.types._JoinablePath.with_name() when given an empty name, or acting upon a path with an empty name. This behaviour matches pathlib.PurePath.with_name().

Raise `ValueError` from `pathlib.types._JoinablePath.with_name()` when
given an empty name, or acting upon a path with an empty name. This
behaviour matches `pathlib.PurePath.with_name()`.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@barneygale