PEP 378: Format Specifier for Thousands Separator

Oscar Benjamin oscar.j.benjamin at gmail.com
Wed May 22 20:30:53 EDT 2013


On 22 May 2013 23:31, Carlos Nepomuceno <carlosnepomuceno at outlook.com> wrote:
>
> I still don't understand why % benefits from literals optimization ("'%d'%12345") while '{:d}'.format(12345) doesn't.

There's no reason why that optimisation can't happen in principle.
However no one has written a patch for it. Why don't you look into
what it would take to make it happen?


Oscar



More information about the Python-list mailing list