[issue13280] argparse should use the new Formatter class
report at bugs.python.org
Thu Oct 27 22:19:11 CEST 2011
New submission from Patrick Westerhoff <PatrickWesterhoff at gmail.com>:
according to PEP 3101, the new string.Formatter class is supposed to replace the old string formatting with %. At least that is what I was always thinking. Given that argparse is a Python 3.2+ exclusive module, I think it should make use of that new formatting method.
Is there any special reason why that is not the case and the old %-formatting is used? It feels a bit weird to have Python 3 code using only string.Formatter and then have a short section where the old formatter is used – especially when that module was introduced with Python 3.2.
components: Library (Lib)
title: argparse should use the new Formatter class
versions: Python 3.2, Python 3.3, Python 3.4
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list