[docs] [issue13685] argparse does not sanitize help strings for % signs

Eric V. Smith report at bugs.python.org
Mon Jan 2 23:04:23 CET 2012

Eric V. Smith <eric at trueblade.com> added the comment:

In case I wasn't clear, I mean that the help string supports %-formatting variable expansion, such as "%(default)s". I think it would be good if a sentence were added to the end of the "help" section, saying something like:

Because the help string supports %-formatting, if you want a literal "%" to appear in the help string, you must escape it as "%%".


Python tracker <report at bugs.python.org>

More information about the docs mailing list