Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
savannahostrowski wants to merge9 commits intopython:main
base:main
Choose a base branch
Loading
fromsavannahostrowski:gh-108009

Conversation

savannahostrowski
Copy link
Member

@savannahostrowskisavannahostrowski commentedSep 17, 2024
edited by github-actionsbot
Loading

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/

@savannahostrowskisavannahostrowski added the docsDocumentation in the Doc dir labelSep 17, 2024
@bedevere-appbedevere-appbot mentioned this pull requestSep 17, 2024
Copy link
Member

@CAM-GerlachCAM-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 theCommit 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!

savannahostrowski reacted with heart emoji
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
@serhiy-storchaka
Copy link
Member

@hpaulj, does this change satisfy your criteria?

@savannahostrowskisavannahostrowski linked an issueOct 18, 2024 that may beclosed by this pull request
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@CAM-GerlachCAM-GerlachCAM-Gerlach left review comments

Assignees
No one assigned
Labels
awaiting reviewdocsDocumentation in the Doc dirskip news
Projects
Status: Todo
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

argparse set_defaults
3 participants
@savannahostrowski@serhiy-storchaka@CAM-Gerlach

[8]ページ先頭

©2009-2025 Movatter.jp