[New-bugs-announce] [issue13280] argparse should use the new Formatter class

Patrick Westerhoff report at bugs.python.org
Thu Oct 27 22:19:11 CEST 2011


New submission from Patrick Westerhoff <PatrickWesterhoff at gmail.com>:

Hey,

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)
messages: 146516
nosy: poke
priority: normal
severity: normal
status: open
title: argparse should use the new Formatter class
type: behavior
versions: Python 3.2, Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13280>
_______________________________________


More information about the New-bugs-announce mailing list