Skip to content

gh-155044: Support copy.replace() for optparse.Values - #155050

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:optparse-values-replace
Aug 13, 2026
Merged

gh-155044: Support copy.replace() for optparse.Values#155050
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:optparse-values-replace

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

Add Values.__replace__(), with the same semantics as types.SimpleNamespace.__replace__().

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@read-the-docs-community

read-the-docs-community Bot commented Aug 1, 2026

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33869424 | 📁 Comparing 104f8dc against main (7ce7f0b)

  🔍 Preview build  

2 files changed
± library/optparse.html
± whatsnew/changelog.html

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@serhiy-storchaka
serhiy-storchaka merged commit c0d0b28 into python:main Aug 13, 2026
50 checks passed
@serhiy-storchaka
serhiy-storchaka deleted the optparse-values-replace branch August 13, 2026 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant