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

Nick Coghlan ncoghlan at gmail.com
Sat Oct 10 18:06:59 CEST 2009


Glenn Linderman wrote:

If you want to replace a C program that produces parsed output in a given format, and that given format includes leading-0-octal numbers, then it would be good to have the capability in Python .format, even though Python itself uses 0o prefix.

Similar arguments may apply anywhere else that sprintf produces something that .format cannot currently produce.

Heh, I should have read this before making my last comment - this is exactly what I was trying to get at :)

Cheers, Nick.

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



More information about the Python-Dev mailing list