[issue46453] argparse subparser help text is not escaped before string formatting

2022-01-22 Thread Irit Katriel
Irit Katriel added the comment: This is a feature. See https://docs.python.org/3/library/argparse.html#help -- nosy: +iritkatriel resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue46453] argparse subparser help text is not escaped before string formatting

2022-01-21 Thread Peder Bergebakken Sundt
Change by Peder Bergebakken Sundt : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue46453] argparse subparser help text is not escaped before string formatting

2022-01-21 Thread Peder Bergebakken Sundt
New submission from Peder Bergebakken Sundt : The `help` text in add_argument of a subparser in argparse can not contain a `%`, as it will affect string formatting. This often results in an exception. See repro.py for a reproduction, tested in Python 3.7 - 3.10. -- components: Library