René's URL Explorer Experiment


Title: Clarify argparse's append action · Issue #139067 · python/cpython · GitHub

Open Graph Title: Clarify argparse's append action · Issue #139067 · python/cpython

X Title: Clarify argparse's append action · Issue #139067 · python/cpython

Description: Documentation The documentation for argparse's append action when a default value is provided is unclear Currently the docs state: 'append' - This stores a list, and appends each argument value to the list. It is useful to allow an optio...

Open Graph Description: Documentation The documentation for argparse's append action when a default value is provided is unclear Currently the docs state: 'append' - This stores a list, and appends each argument value to ...

X Description: Documentation The documentation for argparse's append action when a default value is provided is unclear Currently the docs state: 'append' - This stores a list, and appends each argume...

Opengraph URL: https://github.com/python/cpython/issues/139067

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Clarify argparse's append action","articleBody":"# Documentation\n\nThe documentation for argparse's `append` action when a default value is provided is unclear \n\nCurrently the [docs](https://docs.python.org/3/library/argparse.html#action) state:\n\n> 'append' - This stores a list, and appends each argument value to the list. It is useful to allow an option to be specified multiple times. If the default value is non-empty, the default elements will be present in the parsed value for the option, with any values from the command line appended after those default values. Example usage:\n\n```\nparser = argparse.ArgumentParser()\nparser.add_argument('--foo', action='append')\nparser.parse_args('--foo 1 --foo 2'.split())\nNamespace(foo=['1', '2'])\n```\n\nHowever, this documentation does not specify that the default needs to be a list, and cannot be a single value. While this may be obvious in hindsight, a short example would entirely remove this source of confusion.\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-131389\n* gh-139068\n* gh-139069\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/moshekaplan","@type":"Person","name":"moshekaplan"},"datePublished":"2025-09-17T16:21:33Z","url":"https://github.com/python/cpython/issues/139067"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:506cf5ee-b03e-c044-93d9-047f8b236f2b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB03E:CC1A4:3C021D7:4C50D79:6B020361
html-safe-nonce895c190b5b6640bc837ee046fa1ed1c473855f060db2e7316c1dc483f5c6aa30
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDNFOkNDMUE0OjNDMDIxRDc6NEM1MEQ3OTo2QjAyMDM2MSIsInZpc2l0b3JfaWQiOiIyNzkyNzcyODMzNTY1MDgyNDY1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5ce1edc0be230787e41408e10a04169dbf561e7daa6876f960e2572e8acf4336
hovercard-subject-tagissue:3426974431
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/139067/issue_layout
twitter:imagehttps://opengraph.githubassets.com/595527df11fd3e2072435f5ffcf77a5f58e89a8461271892cc0bb021d6a438a0/python/cpython/issues/139067
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/595527df11fd3e2072435f5ffcf77a5f58e89a8461271892cc0bb021d6a438a0/python/cpython/issues/139067
og:image:altDocumentation The documentation for argparse's append action when a default value is provided is unclear Currently the docs state: 'append' - This stores a list, and appends each argument value to ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemoshekaplan
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/139067#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F139067
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F139067
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/139067
Reloadhttps://github.com/python/cpython/issues/139067
Reloadhttps://github.com/python/cpython/issues/139067
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/139067
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/139067
#131389https://github.com/python/cpython/pull/131389
Clarify argparse's append actionhttps://github.com/python/cpython/issues/139067#top
#131389https://github.com/python/cpython/pull/131389
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
https://github.com/moshekaplan
moshekaplanhttps://github.com/moshekaplan
on Sep 17, 2025https://github.com/python/cpython/issues/139067#issue-3426974431
docshttps://docs.python.org/3/library/argparse.html#action
GH-139067: Add example for argparse's append action #131389https://github.com/python/cpython/pull/131389
[3.14] GH-139067: Add example for argparse's append action (GH-131389) #139068https://github.com/python/cpython/pull/139068
[3.13] GH-139067: Add example for argparse's append action (GH-131389) #139069https://github.com/python/cpython/pull/139069
moshekaplanhttps://github.com/moshekaplan
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
on Sep 17, 2025https://github.com/python/cpython/issues/139067#event-19754642464
github-project-automationhttps://github.com/apps/github-project-automation
docs issueshttps://github.com/orgs/python/projects/52
on Sep 17, 2025https://github.com/python/cpython/issues/139067#event-19754642974
github-project-automationhttps://github.com/apps/github-project-automation
docs issueshttps://github.com/orgs/python/projects/52
on Sep 17, 2025https://github.com/python/cpython/issues/139067
savannahostrowskihttps://github.com/savannahostrowski
on Sep 17, 2025https://github.com/python/cpython/issues/139067#event-19754704011
GH-139067: Add example for `argparse`'s `append` action (#131389)https://github.com/python/cpython/commit/101fd33065638c94f413447a7bcff09d54831a4a
GH-139067https://github.com/python/cpython/issues/139067
#131389https://github.com/python/cpython/pull/131389
101fd33https://github.com/python/cpython/commit/101fd33065638c94f413447a7bcff09d54831a4a
savannahostrowskihttps://github.com/savannahostrowski
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#131389https://github.com/python/cpython/pull/131389
on Sep 17, 2025https://github.com/python/cpython/issues/139067#event-19754704028
miss-islingtonhttps://github.com/miss-islington
on Sep 17, 2025https://github.com/python/cpython/issues/139067#event-19754707044
pythonGH-139067: Add example for `argparse`'s `append` action (python…https://github.com/miss-islington/cpython/commit/cdb8c2720f2a70092f25aada49dee8c71ca4069a
pythonGH-139067https://github.com/python/cpython/issues/139067
python…https://github.com/python/cpython/pull/131389
cdb8c27https://github.com/miss-islington/cpython/commit/cdb8c2720f2a70092f25aada49dee8c71ca4069a
pythonGH-139067: Add example for `argparse`'s `append` action (python…https://github.com/miss-islington/cpython/commit/2766c3c1e5025a3a32a759e6827c4fbe3466e854
pythonGH-139067https://github.com/python/cpython/issues/139067
python…https://github.com/python/cpython/pull/131389
2766c3chttps://github.com/miss-islington/cpython/commit/2766c3c1e5025a3a32a759e6827c4fbe3466e854
StanFromIrelandhttps://github.com/StanFromIreland
Argparse issueshttps://github.com/orgs/python/projects/5
on Sep 17, 2025https://github.com/python/cpython/issues/139067#event-19754811101
savannahostrowskihttps://github.com/savannahostrowski
on Sep 17, 2025https://github.com/python/cpython/issues/139067#event-19754909557
[3.13] GH-139067: Add example for `argparse`'s `append` action (GH-13…https://github.com/python/cpython/commit/fa6dbb16419dacb57cb831b1fac5a32fef4f412d
GH-139067https://github.com/python/cpython/issues/139067
GH-13…https://github.com/python/cpython/pull/131389
fa6dbb1https://github.com/python/cpython/commit/fa6dbb16419dacb57cb831b1fac5a32fef4f412d
hugovkhttps://github.com/hugovk
on Sep 17, 2025https://github.com/python/cpython/issues/139067#event-19760808715
[3.14] GH-139067: Add example for `argparse`'s `append` action (GH-13…https://github.com/python/cpython/commit/a20395b899163b4d337107b2c4ca1f3cef467462
GH-139067https://github.com/python/cpython/issues/139067
GH-13…https://github.com/python/cpython/pull/131389
a20395bhttps://github.com/python/cpython/commit/a20395b899163b4d337107b2c4ca1f3cef467462
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/139067
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/139067
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
Argparse issueshttps://github.com/orgs/python/projects/5
docs issueshttps://github.com/orgs/python/projects/52
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.