[issue30163] argparse mx_group is required, when action value equal default will be ignore

2017-04-27 Thread Berker Peksag
Changes by Berker Peksag : -- superseder: -> argparse: default args in mutually exclusive groups ___ Python tracker ___

[issue30163] argparse mx_group is required, when action value equal default will be ignore

2017-04-26 Thread Louie Lu
Louie Lu added the comment: Thanks, paul. Your msg help a lot. Will you work on #18943? I can help for this or review the pending patch. -- resolution: -> duplicate ___ Python tracker

[issue30163] argparse mx_group is required, when action value equal default will be ignore

2017-04-26 Thread paul j3
paul j3 added the comment: This issue was raised in 2013. The proposed patch is still pending http://bugs.python.org/issue18943 I'm going to close this new one, though it is a good reminder of a rare, but persistent bug. -- ___ Python tracker

[issue30163] argparse mx_group is required, when action value equal default will be ignore

2017-04-26 Thread paul j3
Changes by paul j3 : -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30163] argparse mx_group is required, when action value equal default will be ignore

2017-04-25 Thread paul j3
paul j3 added the comment: And only for integers smaller than 257! The problem is with this test in `take_action` function # error if this argument is not allowed with other previously # seen arguments, assuming that actions that use the default # value

[issue30163] argparse mx_group is required, when action value equal default will be ignore

2017-04-25 Thread Louie Lu
Louie Lu added the comment: Maybe documentation should note that: """ # error if this argument is not allowed with other previously # seen arguments, assuming that actions that use the default # value don't really count as "present" """ -- ___ Python

[issue30163] argparse mx_group is required, when action value equal default will be ignore

2017-04-25 Thread Louie Lu
Louie Lu added the comment: Strange, this will only trigger when that argument type is int. -- ___ Python tracker ___

[issue30163] argparse mx_group is required, when action value equal default will be ignore

2017-04-25 Thread Louie Lu
New submission from Louie Lu: When adding mutually exclusive group and required is True, and the group argument has default value. If we type its default value, argparse will ignore the input and return `argument is required` --- PoC import argparse parser =

[issue30163] argparse mx_group is required, when action value equal default will be ignore

2017-04-25 Thread Louie Lu
Changes by Louie Lu : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list