[issue38693] Use f-strings instead of str.format within importlib

Serhiy Storchaka report at bugs.python.org
Fri May 14 03:47:18 EDT 2021


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

I just have merged a change which makes many C-style formatting as fast as f-strings (issue28307) and am working on supporting more format codes (%d, %x, %f, etc). Using C-style formatting can be a good option if you want performance and backward compatibility. It was faster than str.format() even without that optimization.

----------
nosy: +serhiy.storchaka

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


More information about the Python-bugs-list mailing list