[New-bugs-announce] [issue41289] '%' character in help= for argparse causes ValueError: incomplete format

Neil Godber report at bugs.python.org
Sun Jul 12 19:56:17 EDT 2020


New submission from Neil Godber <njgodber at gmail.com>:

'%' character in help= for argparse causes ValueError: incomplete format. I am attempting to use the percentage character in my help string but get the above error. Presumably argparse assumes % denotes formatting when this is not the case. I have tried f-strings, escape and raw strings, none of which rectify the issue. The only solution is that dev's cannot use % character in argpase help strings which is something of an oddity.

----------
components: Interpreter Core
messages: 373578
nosy: Neil Godber
priority: normal
severity: normal
status: open
title: '%' character in help= for argparse causes ValueError: incomplete format
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41289>
_______________________________________


More information about the New-bugs-announce mailing list