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

Nick Coghlan ncoghlan at gmail.com
Tue Oct 6 12:32:10 CEST 2009


Vinay Sajip wrote:

Both of these approaches will also work for {}-formatting. The present thread really started out with a view to suggesting that the stdlib start adopting {}-format as "native", rather than %-format.

Would it be helpful if I added a section to the Python docs about how to use alternative formatting systems with logging?

That would probably be a good idea.

Cheers, Nick.

-- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia



More information about the Python-Dev mailing list