Skip to content

gh-72073: Clarify pathlib rename() and replace() docs#149323

Closed
purushothamanlabi wants to merge 1 commit intopython:mainfrom
purushothamanlabi:gh-72073-pathlib-rename-replace-docs
Closed

gh-72073: Clarify pathlib rename() and replace() docs#149323
purushothamanlabi wants to merge 1 commit intopython:mainfrom
purushothamanlabi:gh-72073-pathlib-rename-replace-docs

Conversation

@purushothamanlabi
Copy link
Copy Markdown

@purushothamanlabi purushothamanlabi commented May 3, 2026

Summary

Clarify the difference between pathlib.Path.rename() and pathlib.Path.replace() by documenting their overwrite behavior and the underlying os.rename() / os.replace() semantics.

Testing

  • not run (documentation-only change; local Sphinx tooling was not installed in this environment)

@python-cla-bot
Copy link
Copy Markdown

python-cla-bot Bot commented May 3, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@read-the-docs-community
Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #32516286 | 📁 Comparing 2391cd0 against main (836fbda)

  🔍 Preview build  

1 file changed
± library/pathlib.html

@picnixz
Copy link
Copy Markdown
Member

picnixz commented May 3, 2026

Path.rename is already clear and already documents what needs to be documented. The issue was also closed as completed and this looks an LLM generated PR which we forbid unless reviewed by a human and (at least acknowledged): https://matplotlib.org/devdocs/devel/contribute.html#generative-ai.

@picnixz picnixz closed this May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants