[Python-Dev] transitioning from % to {} formatting

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