Is there any difference between these two calls:
import logging
logging.getLogger().debug('test: %i' % 42)
and
logging.getLogger().debug('test: {}'.format(42))
Where we assume 42
is replaced by some long computation (say 7.5 million years of computation) when it is cast to a string that produces a final answer of 42.
Is the first approach lazily evaluated in case logging is set to debug?