[Python-Dev] transitioning from % to {} formatting (original) (raw)

Raymond Hettinger python at rcn.com
Thu Oct 1 17:50:28 CEST 2009


[Vinay Sajip]

And the special wrappers needn't be too intrusive:

__ = BraceMessage_ logger.debug(("Message with {0} {1}", 1, "argument"))_

It looks like the BraceMessage would have to re-instantiate on every invocation.

Raymond



More information about the Python-Dev mailing list