-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
gh-140448: Default suggest_on_error to True in argparse.ArgumentParser
#140450
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
gh-140448: Default suggest_on_error to True in argparse.ArgumentParser
#140450
Conversation
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey there! Thanks for this PR. Since it's your first in the repo 🎉 , you're also welcome to add yourself to https://github.com/python/cpython/blob/main/Misc/ACKS!
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
This is done as explicit enablement will be the least common pattern now.
|
Thank you for the review! I have made the requested changes; please review again. |
|
Thanks for making the requested changes! @savannahostrowski: please review the changes made to this pull request. |
|
Oh! One more thing - can you update https://github.com/python/cpython/blob/main/Doc/whatsnew/3.15.rst#improved-modules to include a mention of this change? You'll have to add a header for argparse since this is the first improvement of 3.15 for the module. 🙂 Here's the example of what I added in 3.14 What's New when I added the feature: https://github.com/python/cpython/pull/125671/files |
|
Done (-: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome - thanks again!
|
🎉 |
|
|
The buildbot failure is unrelated to this change |
suggest_on_errortoTrueinargparse.ArgumentParser#140448📚 Documentation preview 📚: https://cpython-previews--140450.org.readthedocs.build/