[issue42191] lib.argparse._check_value() using repre instead of str

2020-10-29 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue42191] lib.argparse._check_value() using repre instead of str

2020-10-29 Thread Aschwin
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(