Content-Length: 278474 | pFad | http://github.com/python/cpython/pull/150276

DB gh-148468: Accept string-like help proxies in argparse by RaghunandanKumar · Pull Request #150276 · python/cpython · GitHub
Skip to content

gh-148468: Accept string-like help proxies in argparse#150276

Open
RaghunandanKumar wants to merge 1 commit into
python:mainfrom
RaghunandanKumar:fix-argparse-string-like-help
Open

gh-148468: Accept string-like help proxies in argparse#150276
RaghunandanKumar wants to merge 1 commit into
python:mainfrom
RaghunandanKumar:fix-argparse-string-like-help

Conversation

@RaghunandanKumar
Copy link
Copy Markdown

Summary

  • restore support for string-like proxy objects in colorized argparse descriptions, epilogs, and argument help text
  • normalize formatter text at the string-formatting boundary instead of assuming concrete str objects
  • add regression coverage for proxied descriptions, epilogs, and interpolated help text

Issue

Testing

  • ./python.exe -m test test_argparse
  • runtime repro with a minimal LazyStr proxy and parser.format_help()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/python/cpython/pull/150276

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy