René's URL Explorer Experiment


Title: GH-130750: Restore quoting of choices in argparse error messages to match documentation and improve clarity by savannahostrowski · Pull Request #144983 · python/cpython · GitHub

Open Graph Title: GH-130750: Restore quoting of choices in argparse error messages to match documentation and improve clarity by savannahostrowski · Pull Request #144983 · python/cpython

X Title: GH-130750: Restore quoting of choices in argparse error messages to match documentation and improve clarity by savannahostrowski · Pull Request #144983 · python/cpython

Description: In 66b3922 (gh-117766), argparse was changed to use str() instead of repr() when displaying choices in error messages. This was done to improve StrEnum display, but had the side effect of removing quotes from string choices, making error messages less clear and inconsistent with the documentation. Issue: gh-130750

Open Graph Description: In 66b3922 (gh-117766), argparse was changed to use str() instead of repr() when displaying choices in error messages. This was done to improve StrEnum display, but had the side effect of removing ...

X Description: In 66b3922 (gh-117766), argparse was changed to use str() instead of repr() when displaying choices in error messages. This was done to improve StrEnum display, but had the side effect of removing ...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:614fefac-bab8-cdb7-7a7e-9a8beb95f0c5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8432:E2378:57342D6:797795F:6A4F885A
html-safe-nonce3d955ab9c274e1f8e59f2d1b503c7f9d4e7efa47b6ac7e83524866e663457a8e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDMyOkUyMzc4OjU3MzQyRDY6Nzk3Nzk1Rjo2QTRGODg1QSIsInZpc2l0b3JfaWQiOiI4MTA5Mzg2MDYxODM3MjA3NjQyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc2703318ab218cc058272adcf189081a1d6e34794bd0a079f7cda85814a1a881
hovercard-subject-tagpull_request:3301368354
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/144983/files
twitter:imagehttps://avatars.githubusercontent.com/u/8949415?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/8949415?s=400&v=4
og:image:altIn 66b3922 (gh-117766), argparse was changed to use str() instead of repr() when displaying choices in error messages. This was done to improve StrEnum display, but had the side effect of removing ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4b249b445842943ed31549e027f57a8ade9881ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/144983/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F144983%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2F144983%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/144983/files
Reloadhttps://github.com/python/cpython/pull/144983/files
Reloadhttps://github.com/python/cpython/pull/144983/files
Please reload this pagehttps://github.com/python/cpython/pull/144983/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/144983/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k 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.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
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 and quality 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
savannahostrowskihttps://github.com/savannahostrowski
python:mainhttps://github.com/python/cpython/tree/main
savannahostrowski:fix-suggestionhttps://github.com/savannahostrowski/cpython/tree/fix-suggestion
Conversation 13 https://github.com/python/cpython/pull/144983
Commits 11 https://github.com/python/cpython/pull/144983/commits
Checks 54 https://github.com/python/cpython/pull/144983/checks
Files changed https://github.com/python/cpython/pull/144983/files
Please reload this pagehttps://github.com/python/cpython/pull/144983/files
GH-130750: Restore quoting of choices in argparse error messages to match documentation and improve clarity https://github.com/python/cpython/pull/144983/files#top
Show all changes 11 commits https://github.com/python/cpython/pull/144983/files
4c79b5a Ensure quotes around suggestions savannahostrowski Feb 19, 2026 https://github.com/python/cpython/pull/144983/commits/4c79b5af8c1ef14904041fd9986354c0d851e734
f29635d 📜🤖 Added by blurb_it. blurb-it[bot] Feb 19, 2026 https://github.com/python/cpython/pull/144983/commits/f29635dc747ae2859c0b0b2ab492351690002840
0330428 Merge branch 'main' into fix-suggestion savannahostrowski Feb 19, 2026 https://github.com/python/cpython/pull/144983/commits/03304288cffaddb3cac2e2a208f14361685aba67
82d0715 Merge branch 'main' into fix-suggestion savannahostrowski Feb 23, 2026 https://github.com/python/cpython/pull/144983/commits/82d07156e76efb80154a61d888a2dc530ae60426
7682569 Merge branch 'main' into fix-suggestion savannahostrowski May 4, 2026 https://github.com/python/cpython/pull/144983/commits/76825691fb915403c9573d36043592913b68335d
b70ed30 Merge branch 'fix-suggestion' of https://github.com/savannahostrowski… savannahostrowski May 4, 2026 https://github.com/python/cpython/pull/144983/commits/b70ed30a71bdab776ce55e87ce24668c4cd5280f
75defab Just quote everything, since its all a str anyway savannahostrowski May 4, 2026 https://github.com/python/cpython/pull/144983/commits/75defab960515b0b7db449abbb015a8f5bcfabaa
fcf76a7 Merge branch 'main' into fix-suggestion savannahostrowski May 4, 2026 https://github.com/python/cpython/pull/144983/commits/fcf76a72cc60ae8dfeb25357b28885e236a93cff
1d14d66 Merge branch 'main' into fix-suggestion savannahostrowski May 4, 2026 https://github.com/python/cpython/pull/144983/commits/1d14d66144f93aa65051982b1816a396b22c897a
0625164 Missed tests savannahostrowski May 4, 2026 https://github.com/python/cpython/pull/144983/commits/06251645b50453516adedeb2dbcec7965ba59a89
e33550c one more test savannahostrowski May 4, 2026 https://github.com/python/cpython/pull/144983/commits/e33550c5293a3bb864f29485e1f61313dac07ced
Clear filters https://github.com/python/cpython/pull/144983/files
Please reload this pagehttps://github.com/python/cpython/pull/144983/files
Please reload this pagehttps://github.com/python/cpython/pull/144983/files
argparse.py https://github.com/python/cpython/pull/144983/files#diff-205ef24c9374465bf35c359abce9211d3aa113e986a1e3d41569eb29d07df479
test_argparse.py https://github.com/python/cpython/pull/144983/files#diff-c7651634d84a017884451f95f6535a1d2efbeacee1cca7cc1e27fdc748804aa1
test_timeit.py https://github.com/python/cpython/pull/144983/files#diff-22620e039218572933f1b46ea110c5f0bdb40fa0d4cd637a037b26ff90c4f002
2026-02-19-04-40-57.gh-issue-130750.0hW52O.rst https://github.com/python/cpython/pull/144983/files#diff-ee2972cd70a8b43f2c94515c8f6ed77652fcbb132e88fc76096bd932b81b8701
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L373
Lib/argparse.pyhttps://github.com/python/cpython/pull/144983/files#diff-205ef24c9374465bf35c359abce9211d3aa113e986a1e3d41569eb29d07df479
View file https://github.com/savannahostrowski/cpython/blob/e33550c5293a3bb864f29485e1f61313dac07ced/Lib/argparse.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/144983/{{ revealButtonHref }}
https://github.com/python/cpython/pull/144983/files#diff-205ef24c9374465bf35c359abce9211d3aa113e986a1e3d41569eb29d07df479
https://github.com/python/cpython/pull/144983/files#diff-205ef24c9374465bf35c359abce9211d3aa113e986a1e3d41569eb29d07df479
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L374
Lib/test/test_argparse.pyhttps://github.com/python/cpython/pull/144983/files#diff-c7651634d84a017884451f95f6535a1d2efbeacee1cca7cc1e27fdc748804aa1
View file https://github.com/savannahostrowski/cpython/blob/e33550c5293a3bb864f29485e1f61313dac07ced/Lib/test/test_argparse.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/144983/{{ revealButtonHref }}
https://github.com/python/cpython/pull/144983/files#diff-c7651634d84a017884451f95f6535a1d2efbeacee1cca7cc1e27fdc748804aa1
https://github.com/python/cpython/pull/144983/files#diff-c7651634d84a017884451f95f6535a1d2efbeacee1cca7cc1e27fdc748804aa1
https://github.com/python/cpython/pull/144983/files#diff-c7651634d84a017884451f95f6535a1d2efbeacee1cca7cc1e27fdc748804aa1
https://github.com/python/cpython/pull/144983/files#diff-c7651634d84a017884451f95f6535a1d2efbeacee1cca7cc1e27fdc748804aa1
https://github.com/python/cpython/pull/144983/files#diff-c7651634d84a017884451f95f6535a1d2efbeacee1cca7cc1e27fdc748804aa1
https://github.com/python/cpython/pull/144983/files#diff-c7651634d84a017884451f95f6535a1d2efbeacee1cca7cc1e27fdc748804aa1
https://github.com/python/cpython/pull/144983/files#diff-c7651634d84a017884451f95f6535a1d2efbeacee1cca7cc1e27fdc748804aa1
https://github.com/python/cpython/pull/144983/files#diff-c7651634d84a017884451f95f6535a1d2efbeacee1cca7cc1e27fdc748804aa1
https://github.com/python/cpython/pull/144983/files#diff-c7651634d84a017884451f95f6535a1d2efbeacee1cca7cc1e27fdc748804aa1
https://github.com/python/cpython/pull/144983/files#diff-c7651634d84a017884451f95f6535a1d2efbeacee1cca7cc1e27fdc748804aa1
Lib/test/test_timeit.pyhttps://github.com/python/cpython/pull/144983/files#diff-22620e039218572933f1b46ea110c5f0bdb40fa0d4cd637a037b26ff90c4f002
View file https://github.com/savannahostrowski/cpython/blob/e33550c5293a3bb864f29485e1f61313dac07ced/Lib/test/test_timeit.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/144983/{{ revealButtonHref }}
https://github.com/python/cpython/pull/144983/files#diff-22620e039218572933f1b46ea110c5f0bdb40fa0d4cd637a037b26ff90c4f002
https://github.com/python/cpython/pull/144983/files#diff-22620e039218572933f1b46ea110c5f0bdb40fa0d4cd637a037b26ff90c4f002
Misc/NEWS.d/next/Library/2026-02-19-04-40-57.gh-issue-130750.0hW52O.rsthttps://github.com/python/cpython/pull/144983/files#diff-ee2972cd70a8b43f2c94515c8f6ed77652fcbb132e88fc76096bd932b81b8701
View file https://github.com/savannahostrowski/cpython/blob/e33550c5293a3bb864f29485e1f61313dac07ced/Misc/NEWS.d/next/Library/2026-02-19-04-40-57.gh-issue-130750.0hW52O.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/144983/{{ revealButtonHref }}
Please reload this pagehttps://github.com/python/cpython/pull/144983/files
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.