Skip to content

GH-148468: Accept string-like proxy objects in colorized argparse help - #154653

Merged
savannahostrowski merged 5 commits into
python:mainfrom
savannahostrowski:fix-gh-148468-lazy-help
Jul 30, 2026
Merged

GH-148468: Accept string-like proxy objects in colorized argparse help#154653
savannahostrowski merged 5 commits into
python:mainfrom
savannahostrowski:fix-gh-148468-lazy-help

Conversation

@savannahostrowski

@savannahostrowski savannahostrowski commented Jul 24, 2026

Copy link
Copy Markdown
Member

@savannahostrowski savannahostrowski added the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Jul 24, 2026
@savannahostrowski

Copy link
Copy Markdown
Member Author

@hugovk (since it's colour-related) @clytaemnestra Perhaps one or both of you have some cycles to review this one :) ?

@hugovk

hugovk commented Jul 29, 2026

Copy link
Copy Markdown
Member

I left a comment at #148468 (comment) that I can no longer repro the MRE with latest 3.15 and main.

Is this change still needed or useful?

@savannahostrowski

Copy link
Copy Markdown
Member Author

Yes, seems like it. #148468 (comment)

Comment thread Lib/test/test_argparse.py
Comment thread Lib/test/test_argparse.py
Comment thread Lib/argparse.py Outdated
Comment thread Lib/argparse.py Outdated
savannahostrowski and others added 2 commits July 29, 2026 19:52
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Savannah Ostrowski <savannah@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>

@hugovk hugovk 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.

Thanks!

@savannahostrowski
savannahostrowski enabled auto-merge (squash) July 30, 2026 15:30
@savannahostrowski

Copy link
Copy Markdown
Member Author

Thanks for the quick review, Hugo! And for being so thorough!

@savannahostrowski
savannahostrowski merged commit a147366 into python:main Jul 30, 2026
50 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @savannahostrowski for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Jul 30, 2026

Copy link
Copy Markdown

GH-154946 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Jul 30, 2026
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.

2 participants