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

Vinay raises a good point about performance that's well worth being aware of, 
especially with expensive objects (as he says). But since f-strings are much 
faster than other formatting (and especially .format()), there's a tradeoff. If 
I have something that I know is likely to be logged, sometimes I'll format it 
with f-strings.

----------

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

Reply via email to