Thanks to visit codestin.com
Credit goes to github.com

Skip to content

GH-108009: Add clarification of parser and argument defaults in argparse docs #124154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

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
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 <[email protected]>
@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review docs Documentation in the Doc dir skip news
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

argparse set_defaults
3 participants