Skip to content

[3.15] gh-140971: Document pathlib.PurePath("") meaning and bool value (GH-157293) - #157943

Open
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-c36aa09-3.15
Open

miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-c36aa09-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

pathlib.PurePath() and pathlib.PurePath('') both mean the
current working directory and both have boolean value True.

Patch implements suggestion in
#140993 (comment).

(cherry picked from commit c36aa09)

Co-authored-by: Terry Jan Reedy tjreedy@udel.edu
Co-authored-by: LiuQhahah liuqiang9596@gmail.com

…pythonGH-157293)

pathlib.PurePath() and pathlib.PurePath('') both mean the
current working directory and both have boolean value True.

Patch implements suggestion in
python#140993 (comment).
---------
(cherry picked from commit c36aa097768eb78cce371d975d173bd04060db56)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: LiuQhahah <liuqiang9596@gmail.com>

@terryjreedy terryjreedy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single file doc change.

@read-the-docs-community

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting merge docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants