This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.j3
Recipients BreamoreBoy, Jason.Baker, bethard, eric.araujo, paul.j3
Date 2013-04-23.07:16:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This nargs test using the formater applies only when the container has a help formatter.  That is true for a ArgumentParser, but not for an argument_group.

group = parser.add_argument_group('g')
group.add_argument('bar', nargs='test')

does not raise an error.

format_help will produce an error: ...
      File "./", line 585, in _format_args
        formats = ['%s' for _ in range(action.nargs)]
    TypeError: 'str' object cannot be interpreted as an integer

while parse_args produces the error: ...
      File "./", line 2200, in _get_nargs_pattern
        nargs_pattern = '(-*%s-*)' % '-*'.join('A' * nargs)
    TypeError: can't multiply sequence by non-int of type 'str'
Date User Action Args
2013-04-23 07:16:17paul.j3setrecipients: + paul.j3, bethard, eric.araujo, Jason.Baker, BreamoreBoy
2013-04-23 07:16:17paul.j3setmessageid: <>
2013-04-23 07:16:17paul.j3linkissue9849 messages
2013-04-23 07:16:17paul.j3create