Skip to content

Conversation

@savannahostrowski
Copy link
Member

@savannahostrowski savannahostrowski commented Sep 17, 2024

This PR clarifies the nuances of setting defaults at the parser and argument level using argparse.


📚 Documentation preview 📚: https://cpython-previews--124154.org.readthedocs.build/

@savannahostrowski savannahostrowski added the docs Documentation in the Doc dir label Sep 17, 2024
@bedevere-app bedevere-app bot mentioned this pull request Sep 17, 2024
Copy link
Member

@CAM-Gerlach CAM-Gerlach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Stock reminder: You can apply my suggestions with one click using the Commit suggestion button :)

I agree with the change overall, though I left a suggestion to make it substantially shorter, simpler and clearer, which hopefully helps address others' concerns about overcomplicating the docs. Thanks!

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
@serhiy-storchaka
Copy link
Member

@hpaulj, does this change satisfy your criteria?

@savannahostrowski savannahostrowski linked an issue Oct 18, 2024 that may be closed by this pull request
@savannahostrowski savannahostrowski added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Nov 5, 2025
@savannahostrowski savannahostrowski enabled auto-merge (squash) November 5, 2025 22:40
@savannahostrowski savannahostrowski merged commit 95f6e12 into python:main Nov 5, 2025
32 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Nov 5, 2025
@miss-islington-app
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 5, 2025
… argparse docs (pythonGH-124154)

(cherry picked from commit 95f6e12)

Co-authored-by: Savannah Ostrowski <savannah@python.org>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
@bedevere-app
Copy link

bedevere-app bot commented Nov 5, 2025

GH-141084 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Nov 5, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 5, 2025
… argparse docs (pythonGH-124154)

(cherry picked from commit 95f6e12)

Co-authored-by: Savannah Ostrowski <savannah@python.org>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
@bedevere-app
Copy link

bedevere-app bot commented Nov 5, 2025

GH-141085 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Nov 5, 2025
savannahostrowski added a commit that referenced this pull request Nov 5, 2025
…n argparse docs (GH-124154) (#141084)

GH-108009: Add clarification of parser and argument defaults in argparse docs (GH-124154)
(cherry picked from commit 95f6e12)

Co-authored-by: Savannah Ostrowski <savannah@python.org>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
savannahostrowski added a commit that referenced this pull request Nov 5, 2025
…n argparse docs (GH-124154) (#141085)

GH-108009: Add clarification of parser and argument defaults in argparse docs (GH-124154)
(cherry picked from commit 95f6e12)

Co-authored-by: Savannah Ostrowski <savannah@python.org>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
@savannahostrowski savannahostrowski deleted the gh-108009 branch December 4, 2025 22:59
StanFromIreland pushed a commit to StanFromIreland/cpython that referenced this pull request Dec 6, 2025
… argparse docs (python#124154)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

argparse set_defaults

3 participants