René's URL Explorer Experiment


Title: gh-139736: Fix argparse indentation overshoot by 9001 · Pull Request #139738 · python/cpython · GitHub

Open Graph Title: gh-139736: Fix argparse indentation overshoot by 9001 · Pull Request #139738 · python/cpython

X Title: gh-139736: Fix argparse indentation overshoot by 9001 · Pull Request #139738 · python/cpython

Description: When calculating the --help indentation, strip colors before counting the action length. Issue: argparse indentation overshoots due to colors #139736

Open Graph Description: When calculating the --help indentation, strip colors before counting the action length. Issue: argparse indentation overshoots due to colors #139736

X Description: When calculating the --help indentation, strip colors before counting the action length. Issue: argparse indentation overshoots due to colors #139736

Opengraph URL: https://github.com/python/cpython/pull/139738

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:c6b5a75f-2500-3b32-5169-efe3717216ad
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEA72:3B451:B8A1E:103DBD:696F78EF
html-safe-nonce237a4f898c58eba5390136d82763af711250706ae88a9b492756123704cf48d0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTcyOjNCNDUxOkI4QTFFOjEwM0RCRDo2OTZGNzhFRiIsInZpc2l0b3JfaWQiOiI2OTEwMjQyMDkzNDA2MzIwODc5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac28575db4f4c3912d58745998ace011c7edd38f007cbfe45b476deb77e9701ab6
hovercard-subject-tagpull_request:2895595393
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/139738/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/783fec9282fdae871af1554c4d655aa1f068a319e58715da36e89c7138217c20/python/cpython/pull/139738
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/783fec9282fdae871af1554c4d655aa1f068a319e58715da36e89c7138217c20/python/cpython/pull/139738
og:image:altWhen calculating the --help indentation, strip colors before counting the action length. Issue: argparse indentation overshoots due to colors #139736
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:username9001
hostnamegithub.com
expected-hostnamegithub.com
Noneacc7f8c2e144976eeb6e7a73826049dd183bc572ccf5eaa9afb8265c617a97ab
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecc546a224d6d4726a8d7c3a0dfe0cf65dbf9b7bd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/139738#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F139738
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F139738
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/139738
Reloadhttps://github.com/python/cpython/pull/139738
Reloadhttps://github.com/python/cpython/pull/139738
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/139738
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.2k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/139738
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/139738#issue-comment-box
savannahostrowskihttps://github.com/savannahostrowski
python:mainhttps://github.com/python/cpython/tree/main
9001:argparse-indent-fixhttps://github.com/9001/cpython/tree/argparse-indent-fix
gh-139736: Fix argparse indentation overshoot https://github.com/python/cpython/pull/139738#top
savannahostrowskihttps://github.com/savannahostrowski
python:mainhttps://github.com/python/cpython/tree/main
9001:argparse-indent-fixhttps://github.com/9001/cpython/tree/argparse-indent-fix
Conversation 9 https://github.com/python/cpython/pull/139738
Commits 2 https://github.com/python/cpython/pull/139738/commits
Checks 45 https://github.com/python/cpython/pull/139738/checks
Files changed https://github.com/python/cpython/pull/139738/files
Please reload this pagehttps://github.com/python/cpython/pull/139738
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/9001
9001https://github.com/9001
Oct 7, 2025https://github.com/python/cpython/pull/139738#issue-3493317172
Please reload this pagehttps://github.com/python/cpython/pull/139738
argparse indentation overshoots due to colors #139736https://github.com/python/cpython/issues/139736
Please reload this pagehttps://github.com/python/cpython/pull/139738
https://github.com/9001
9001https://github.com/9001
savannahostrowskihttps://github.com/savannahostrowski
code ownerhttps://github.com/python/cpython/blob/5a77f02d72e0735877fe4a5d615559d1541bc232/.github/CODEOWNERS#L357
October 7, 2025 23:19https://github.com/python/cpython/pull/139738#event-20151551459
https://github.com/apps/python-cla-bot
python-cla-bothttps://github.com/apps/python-cla-bot
Oct 7, 2025https://github.com/python/cpython/pull/139738#issuecomment-3379013421
Please reload this pagehttps://github.com/python/cpython/pull/139738
https://cla.python.org/
Please reload this pagehttps://github.com/python/cpython/pull/139738
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 7, 2025https://github.com/python/cpython/pull/139738#issuecomment-3379013429
require a NEWS entryhttps://devguide.python.org/core-developers/committing/#updating-news-and-what-s-new-in-python
blurb_ithttps://blurb-it.herokuapp.com
blurbhttps://pypi.org/project/blurb/
Please reload this pagehttps://github.com/python/cpython/pull/139738
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Oct 7, 2025https://github.com/python/cpython/pull/139738#event-20151552419
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 7, 2025 https://github.com/python/cpython/pull/139738#ref-issue-3493283199
argparse indentation overshoots due to colors #139736 https://github.com/python/cpython/issues/139736
https://github.com/9001
9001https://github.com/9001
Oct 7, 2025https://github.com/python/cpython/pull/139738#issuecomment-3379064494
Please reload this pagehttps://github.com/python/cpython/pull/139738
https://github.com/9001
pythongh-139736https://github.com/python/cpython/issues/139736
: Fix argparse indentation overshoothttps://github.com/python/cpython/pull/139738/commits/f63fed70d258c8d4034616302aee1cd3732552bc
f63fed7https://github.com/python/cpython/pull/139738/commits/f63fed70d258c8d4034616302aee1cd3732552bc
https://github.com/9001
9001https://github.com/9001
force-pushedhttps://github.com/python/cpython/compare/2ac39cb0dc25c08e46470d815b1743cbd143e75d..f63fed70d258c8d4034616302aee1cd3732552bc
2ac39cbhttps://github.com/python/cpython/commit/2ac39cb0dc25c08e46470d815b1743cbd143e75d
f63fed7https://github.com/python/cpython/commit/f63fed70d258c8d4034616302aee1cd3732552bc
Compare https://github.com/python/cpython/compare/2ac39cb0dc25c08e46470d815b1743cbd143e75d..f63fed70d258c8d4034616302aee1cd3732552bc
October 8, 2025 00:07https://github.com/python/cpython/pull/139738#event-20152098537
https://github.com/savannahostrowski
savannahostrowskihttps://github.com/savannahostrowski
Oct 8, 2025https://github.com/python/cpython/pull/139738#issuecomment-3379351396
@9001https://github.com/9001
#133941https://github.com/python/cpython/pull/133941
#130645https://github.com/python/cpython/issues/130645
Please reload this pagehttps://github.com/python/cpython/pull/139738
https://github.com/hugovk
hugovkhttps://github.com/hugovk
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Oct 8, 2025https://github.com/python/cpython/pull/139738#event-20158793539
https://github.com/9001
9001https://github.com/9001
Oct 8, 2025https://github.com/python/cpython/pull/139738#issuecomment-3381232998
Please reload this pagehttps://github.com/python/cpython/pull/139738
https://github.com/hugovk
hugovkhttps://github.com/hugovk
Oct 8, 2025https://github.com/python/cpython/pull/139738#issuecomment-3381572139
Please reload this pagehttps://github.com/python/cpython/pull/139738
https://github.com/savannahostrowski
savannahostrowskihttps://github.com/savannahostrowski
Oct 8, 2025 https://github.com/python/cpython/pull/139738#pullrequestreview-3315313926
View reviewed changes https://github.com/python/cpython/pull/139738/files/79d7715614c9c6c424e09a7769c1d345d53ed9b8
savannahostrowskihttps://github.com/savannahostrowski
https://github.com/python/cpython/pull/139738#pullrequestreview-3315313926
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/139738
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Oct 8, 2025https://github.com/python/cpython/pull/139738#event-20166311493
https://github.com/savannahostrowski
Merge branch 'main' into argparse-indent-fixhttps://github.com/python/cpython/pull/139738/commits/79d7715614c9c6c424e09a7769c1d345d53ed9b8
79d7715https://github.com/python/cpython/pull/139738/commits/79d7715614c9c6c424e09a7769c1d345d53ed9b8
https://github.com/savannahostrowski
savannahostrowskihttps://github.com/savannahostrowski
October 8, 2025 15:09https://github.com/python/cpython/pull/139738#event-20166327326
https://github.com/savannahostrowski
savannahostrowskihttps://github.com/savannahostrowski
72e370chttps://github.com/python/cpython/commit/72e370c910bd941806a36b01f2f57f4c53a78eed
Oct 8, 2025https://github.com/python/cpython/pull/139738#event-20166956194
Please reload this pagehttps://github.com/python/cpython/pull/139738
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Oct 8, 2025https://github.com/python/cpython/pull/139738#event-20166957248
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Oct 8, 2025https://github.com/python/cpython/pull/139738#issuecomment-3382150697
@9001https://github.com/9001
@savannahostrowskihttps://github.com/savannahostrowski
Please reload this pagehttps://github.com/python/cpython/pull/139738
miss-islingtonhttps://github.com/miss-islington
Oct 8, 2025 https://github.com/python/cpython/pull/139738#ref-commit-a4e04b7
https://github.com/9001
https://github.com/savannahostrowski
https://github.com/miss-islington
pythongh-139736https://github.com/python/cpython/issues/139736
: Fix argparse indentation overshoot (https://github.com/miss-islington/cpython/commit/a4e04b7cfca9bebf84f08194ab0f0734ecccf839
pythonGH-139738https://github.com/python/cpython/pull/139738
)https://github.com/miss-islington/cpython/commit/a4e04b7cfca9bebf84f08194ab0f0734ecccf839
a4e04b7https://github.com/miss-islington/cpython/commit/a4e04b7cfca9bebf84f08194ab0f0734ecccf839
72e370chttps://github.com/miss-islington/cpython/commit/72e370c910bd941806a36b01f2f57f4c53a78eed
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 8, 2025https://github.com/python/cpython/pull/139738#issuecomment-3382151566
GH-139793https://github.com/python/cpython/pull/139793
3.14 branchhttps://github.com/python/cpython/tree/3.14
Please reload this pagehttps://github.com/python/cpython/pull/139738
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Oct 8, 2025https://github.com/python/cpython/pull/139738#event-20166962315
savannahostrowskihttps://github.com/savannahostrowski
Oct 8, 2025 https://github.com/python/cpython/pull/139738#ref-commit-14c923c
https://github.com/miss-islington
https://github.com/9001
https://github.com/savannahostrowski
[3.14]https://github.com/python/cpython/commit/14c923cc857124f45ca19d5c28c9fda9ee3d72b3
gh-139736https://github.com/python/cpython/issues/139736
: Fix argparse indentation overshoot (https://github.com/python/cpython/commit/14c923cc857124f45ca19d5c28c9fda9ee3d72b3
GH-139738https://github.com/python/cpython/pull/139738
) (https://github.com/python/cpython/commit/14c923cc857124f45ca19d5c28c9fda9ee3d72b3
#13…https://github.com/python/cpython/pull/139793
14c923chttps://github.com/python/cpython/commit/14c923cc857124f45ca19d5c28c9fda9ee3d72b3
…9793https://github.com/python/cpython/pull/139793
gh-139736https://github.com/python/cpython/issues/139736
GH-139738https://github.com/python/cpython/pull/139738
72e370chttps://github.com/python/cpython/commit/72e370c910bd941806a36b01f2f57f4c53a78eed
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F139738
https://github.com/savannahostrowski
savannahostrowski https://github.com/savannahostrowski
https://github.com/python/cpython/pull/139738/files/79d7715614c9c6c424e09a7769c1d345d53ed9b8
Please reload this pagehttps://github.com/python/cpython/pull/139738
https://github.com/9001
https://github.com/savannahostrowski
https://github.com/hugovk
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.