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

2020-07-12 Thread Neil Godber


New submission from Neil Godber :

'%' 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 
<https://bugs.python.org/issue41289>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-07-12 Thread Neil Godber


Neil Godber  added the comment:

Hi, yes I did just then and indeed this worked. Wasn't aware of this. Further, 
curiously I am no longer able recreate this issue so I will close this for now. 
Sorry for the bother.

--
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue41289>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com