Skip to content

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

Merged
terryjreedy merged 1 commit into
python:3.14from
miss-islington:backport-c36aa09-3.14
Sep 22, 2026
Merged

terryjreedy merged 1 commit into
python:3.14from
miss-islington:backport-c36aa09-3.14

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>
@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news labels Sep 22, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Sep 22, 2026
@terryjreedy
terryjreedy enabled auto-merge (squash) September 22, 2026 11:41
@terryjreedy
terryjreedy merged commit c2e4d42 into python:3.14 Sep 22, 2026
37 of 38 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Sep 22, 2026
@miss-islington
miss-islington deleted the backport-c36aa09-3.14 branch September 22, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants