Skip to content

gh-140971: Document pathlib.PurePath("") meaning and bool value - #157293

Open
terryjreedy wants to merge 1 commit into
python:mainfrom
terryjreedy:emptypathdoc
Open

gh-140971: Document pathlib.PurePath("") meaning and bool value#157293
terryjreedy wants to merge 1 commit into
python:mainfrom
terryjreedy:emptypathdoc

Conversation

@terryjreedy

@terryjreedy terryjreedy commented Sep 11, 2026

Copy link
Copy Markdown
Member

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

Patch implements suggestion in
#140993 (comment).

Co-authored-by: LiuQhahah liuqiang9596@gmail.com

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

Patch implements suggestion in
python#140993 (comment).
---

Co-authored-by: LiuQhahah <liuqiang9596@gmail.com>
@terryjreedy

Copy link
Copy Markdown
Member Author

@StanFromIreland Please check that co-author note is correct. Add to commit message if too terse.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34501193 | 📁 Comparing 6eee976 against main (8f84787)

  🔍 Preview build  

1 file changed
± library/pathlib.html

@terryjreedy terryjreedy added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review docs Documentation in the Doc dir needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant