4 ms·
As the sibling comment points out, it actually doesn't work that way. The first parameter is only treated as a format string _if_ there are arguments. If not, i
by dagenix 6y ago
As the sibling comment points out, it actually doesn't work that way. The first parameter is only treated as a format string _if_ there are arguments. If not, it is treated as a literal string: https://github.com/python/cpython/blob/dcea78ff53d02733ac5983255610b651aa1c0034/Lib/logging/__init__.py#L363 https://github.com/python/cpython/blob/dcea78ff53d02733ac598...