◐ Shell
clean mode source ↗

GH-103525: Improve exception message from `pathlib.PurePath()` by barneygale · Pull Request #103526 · python/cpython

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

Check that arguments are strings before calling `os.path.join()`.

Also improve performance of `PurePath(PurePath(...))` while we're in the
area: we now use the *unnormalized* string path of such arguments.

terryjreedy

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>

@barneygale

Hey @terryjreedy, do you think this is ready to land? Thank you!

@terryjreedy

Assuming that the deletions of '._raw_path' in the dunders is correct (I skipped over these), yes.

carljm added a commit to carljm/cpython that referenced this pull request

May 2, 2023

carljm added a commit to carljm/cpython that referenced this pull request

May 2, 2023

Labels