 |
performance - Python string formatting: % vs. .format - Stack Overflow
To answer your second question, string formatting happens at the same time as any other operation - when the string formatting expression is evaluated. And Python, not being a lazy language, evaluates expressions before calling functions, so in your log.d
stackoverflow.com |
 |