New submission from Aschwin :
I expected the custom Formatter to behave the same as the normal "".format()
function, but unnamed args or not supported.
Below is an example, which fails at a KeyError.
from string import Formatter
class test():
def __init__(self):
self
Change by Aschwin :
--
title: lib.argparse._check_value() using repre instead of str ->
lib.argparse._check_value() using repr instead of str
___
Python tracker
<https://bugs.python.org/issu
New submission from Aschwin :
When using a custom type in add_argument(), the error message on an incorrect
value uses repr instead of str, which looks ugly.
Example code:
login2account = {
c.account.login: c.account for c in self.admin.get_accounts()
}
action_add_parser.add_argument