[issue41782] No f-string in logging.basicConfig()
Eric V. Smith
report at bugs.python.org
Mon Sep 14 11:17:44 EDT 2020
Eric V. Smith <eric at 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 <report at bugs.python.org>
<https://bugs.python.org/issue41782>
_______________________________________
More information about the Python-bugs-list
mailing list