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 iritkatriel
Recipients Jason.Baker, bethard, eric.araujo, iritkatriel, paul.j3, rhettinger
Date 2020-11-07.00:37:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This is fixed now:

Python 3.10.0a2+ (heads/bpo-42184:f3cb814315, Nov  7 2020, 00:31:51) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import argparse
>>> parser = argparse.ArgumentParser()
>>> parser.add_argument('foo', nargs='1')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\User\src\cpython\lib\", line 1430, in add_argument
    self._get_formatter()._format_args(action, None)
  File "C:\Users\User\src\cpython\lib\", line 611, in _format_args
    raise ValueError("invalid nargs value") from None
ValueError: invalid nargs value
Date User Action Args
2020-11-07 00:37:17iritkatrielsetrecipients: + iritkatriel, rhettinger, bethard, eric.araujo, Jason.Baker, paul.j3
2020-11-07 00:37:17iritkatrielsetmessageid: <>
2020-11-07 00:37:17iritkatriellinkissue9849 messages
2020-11-07 00:37:16iritkatrielcreate