[Python-Dev] converting the stdlib to str.format

Georg Brandl g.brandl at gmx.net
Fri Jun 6 13:12:27 CEST 2008


Greg Ewing schrieb:
> Paul Moore wrote:
> 
>> Because the second breaks if value is a tuple:
> 
> However, changing it now is going to break a huge
> amount of existing code that uses %-formatting,
> and in ways that 2to3 can't reliably fix.
> 
> Keeping %-formatting but breaking a large
> proportion of its uses doesn't seem like a good
> idea to me.

Exactly. If % formatting is removed in 3k, code breaks, so we keep it.
Changing it now so that code breaks anyway is not productive :)

Georg

-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.



More information about the Python-Dev mailing list