[New-bugs-announce] [issue44612] inspect module points that could be using f-String

Leonardo Freua report at bugs.python.org
Mon Jul 12 14:34:00 EDT 2021


New submission from Leonardo Freua <leonardo.batista.freua at gmail.com>:

There are some points in inspect module (I counted 48 since version 3.7) that could be using f-String formatting instead of format().

Changing these points will improve code readability, it will also decrease the complexity at these points and not to mention the fact that f-String formatting has better performance.

Obs.: Many other points could receive this improvement in other modules. This would provide the improvements I mentioned earlier, especially in older snippets of code.

----------
components: Library (Lib)
messages: 397343
nosy: Leonardofreua
priority: normal
severity: normal
status: open
title: inspect module points that could be using f-String
type: enhancement
versions: Python 3.10, Python 3.11, Python 3.8, Python 3.9

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


More information about the New-bugs-announce mailing list