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 Neil Godber
Recipients Neil Godber
Date 2020-07-12.23:56:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1594598177.06.0.634893124159.issue41289@roundup.psfhosted.org>
In-reply-to
Content
'%' 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.
History
Date User Action Args
2020-07-12 23:56:17Neil Godbersetrecipients: + Neil Godber
2020-07-12 23:56:17Neil Godbersetmessageid: <1594598177.06.0.634893124159.issue41289@roundup.psfhosted.org>
2020-07-12 23:56:17Neil Godberlinkissue41289 messages
2020-07-12 23:56:16Neil Godbercreate