[issue24444] In argparse empty choices cannot be printed in the help

2021-10-13 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Andrei! ✨ 🍰 ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.6 ___ Python tracker

[issue24444] In argparse empty choices cannot be printed in the help

2021-10-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset fb7203453855a43907048ff2b8f9b890305b3d15 by Miss Islington (bot) in branch '3.9': [3.9] bpo-2: fix an error in argparse help when help for an option is blank (GH-28050) (GH-28932) https://github.com/python/cpython/commit/fb7203453855a43907048f

[issue24444] In argparse empty choices cannot be printed in the help

2021-10-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset fd2be6da2ffec2301a58aefa92f17f0c567fbc55 by Miss Islington (bot) in branch '3.10': bpo-2: fix an error in argparse help when help for an option is blank (GH-28050) (GH-28931) https://github.com/python/cpython/commit/fd2be6da2ffec2301a58aefa92f

[issue24444] In argparse empty choices cannot be printed in the help

2021-10-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +27220 pull_request: https://github.com/python/cpython/pull/28931 ___ Python tracker _

[issue24444] In argparse empty choices cannot be printed in the help

2021-10-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +27221 pull_request: https://github.com/python/cpython/pull/28932 ___ Python tracker ___ __

[issue24444] In argparse empty choices cannot be printed in the help

2021-10-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 6fafc25aea8689048314b5bf7a9bb986bb1ce238 by andrei kulakov in branch 'main': bpo-2: fix an error in argparse help when help for an option is blank (GH-28050) https://github.com/python/cpython/commit/6fafc25aea8689048314b5bf7a9bb986bb1ce238 -

[issue24444] In argparse empty choices cannot be printed in the help

2021-08-29 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch nosy: +andrei.avk nosy_count: 2.0 -> 3.0 pull_requests: +26494 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28050 ___ Python tracker

[issue24444] In argparse empty choices cannot be printed in the help

2016-08-21 Thread paul j3
paul j3 added the comment: This error is also produced by help = ' ' that is, a help line with all blanks. As long as there is a nonblank character in the help line it format fine. This issue doesn't need to be resolved by itself, but should be considered if and when the formatting of c

[issue24444] In argparse empty choices cannot be printed in the help

2015-06-17 Thread paul j3
paul j3 added the comment: Does this work for help='choices: %(choices)s' Without setting up my own test case, I'm guessing that the problem is with an empty help string. `help=''` should be ok, but the test handle that probably occurs earlier. Choices, empty or not, are included earlie

[issue24444] In argparse empty choices cannot be printed in the help

2015-06-12 Thread py.user
New submission from py.user: >>> import argparse >>> >>> parser = argparse.ArgumentParser() >>> _ = parser.add_argument('foo', choices=[], help='%(choices)s') >>> parser.print_help() Traceback (most recent call last): File "", line 1, in File "/home/guest/tmp/tests/misc/git/example/cpython/