Eric V. Smith <e...@trueblade.com> added the comment:

@samuelmarks:

A place where there it is possible to improve performance is with f-strings 
replacing %-formatting or str.format. This does move significant work to 
compile time.

However, we'd be unlikely to accept a wholesale stdlib change that swaps in 
f-strings. Instead, if there were specific places where benchmarks showed real 
world improvements, we should look at those on a case-by-case basis.

Also note that replacing %-formatting with .format() is almost always a 
performance pessimization.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42699>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to