[New-bugs-announce] [issue45497] Argparse: Refactor '%' interpolation to f-strings

Shivnaren Srinivasan report at bugs.python.org
Sat Oct 16 14:42:33 EDT 2021


New submission from Shivnaren Srinivasan <shivnaren at gmail.com>:

I use `argparse` a lot, and I think it's great—going through the source code, I see all string interpolation is with the old printf `%` formatting.

AFAIK, f-strings are now the suggested method for interpolation (*after they were introduced, that is*).

Do we want to refactor the '%' instances to f-strings? Happy to submit a PR if so.

----------
components: Library (Lib)
messages: 404108
nosy: rhettinger, shivnaren
priority: normal
severity: normal
status: open
title: Argparse: Refactor '%' interpolation to f-strings
type: enhancement
versions: Python 3.10, Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45497>
_______________________________________


More information about the New-bugs-announce mailing list