[Python-Dev] transitioning from % to {} formatting
Raymond Hettinger
python at rcn.com
Thu Oct 1 17:50:28 CEST 2009
More information about the Python-Dev mailing list
Thu Oct 1 17:50:28 CEST 2009
- Previous message: [Python-Dev] transitioning from % to {} formatting
- Next message: [Python-Dev] transitioning from % to {} formatting
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[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
- Previous message: [Python-Dev] transitioning from % to {} formatting
- Next message: [Python-Dev] transitioning from % to {} formatting
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list