Uh oh!
There was an error while loading. Please reload this page.
bpo-46080: Fix crash when argparse.BooleanOptionalAction is used with default=argparse.SUPPRESS and help specified - #30111
Conversation
… default=argparse.SUPPRESS and help specified.
the-knights-who-say-ni
commented
Dec 15, 2021
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). CLA MissingOur records indicate the following people have not signed the CLA: For legal reasons we need all the people listed to sign the CLA before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. If you have recently signed the CLA, please wait at least one business day You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
taleinat
left a comment
There was a problem hiding this comment.
Looks good to me, but I suggest some minor changes to the NEWS entry.
Uh oh!
There was an error while loading. Please reload this page.
bedevere-bot
commented
Jan 8, 2022
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 |
Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
miss-islington
commented
Jan 20, 2022
Thanks @felixfontein for the PR, and @taleinat for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10. |
…nGH-30111) Fix an uncaught exception during help text generation when argparse.BooleanOptionalAction is used with default=argparse.SUPPRESS and help is specified. (cherry picked from commit 9e87c0e) Co-authored-by: Felix Fontein <felix@fontein.de>
bedevere-bot
commented
Jan 20, 2022
GH-30730 is a backport of this pull request to the 3.10 branch. |
…nGH-30111) Fix an uncaught exception during help text generation when argparse.BooleanOptionalAction is used with default=argparse.SUPPRESS and help is specified. (cherry picked from commit 9e87c0e) Co-authored-by: Felix Fontein <felix@fontein.de>
bedevere-bot
commented
Jan 20, 2022
GH-30731 is a backport of this pull request to the 3.9 branch. |
) Fix an uncaught exception during help text generation when argparse.BooleanOptionalAction is used with default=argparse.SUPPRESS and help is specified. (cherry picked from commit 9e87c0e) Co-authored-by: Felix Fontein <felix@fontein.de>
) Fix an uncaught exception during help text generation when argparse.BooleanOptionalAction is used with default=argparse.SUPPRESS and help is specified. (cherry picked from commit 9e87c0e) Co-authored-by: Felix Fontein <felix@fontein.de>
felixfontein
commented
Jan 21, 2022
@taleinat thanks for reviewing and merging this! |
…nGH-30111) Fix an uncaught exception during help text generation when argparse.BooleanOptionalAction is used with default=argparse.SUPPRESS and help is specified. (cherry picked from commit 9e87c0e) Co-authored-by: Felix Fontein <felix@fontein.de>
When
argparse.BooleanOptionalActionis used withdefault=argparse.SUPPRESSandhelpspecified, help text composition currently crashes. This PR fixes that by also checking whetherdefault is not SUPPRESSbefore appending%(default)stohelp.https://bugs.python.org/issue46080