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

Paul Moore p.f.moore at gmail.com
Fri Jun 6 11:31:11 CEST 2008


On 06/06/2008, Georg Brandl <g.brandl at gmx.net> wrote:
> 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 :)

Just to clarify, I'm not advocating change here. My comment (above)
about code breaking was in reference to an issue with a chunk of
user-level code which got clipped from the quote, and is completely
unrelated to any diiscussion of changing Python.

Paul.


More information about the Python-Dev mailing list