Sep-22-2020, 07:36 PM
use f-string. they're more readable, and I'm pretty sure a bit more performant (but don't quote me on that).
UNLESS you are in the logger library. In this case, use the old style.
UNLESS you are in the logger library. In this case, use the old style.
import logging logger = logging.getLogger('arb') logger.debug("use old style s% here", your_str_var)