[Python-ideas] String formatting and namedtuple

Eric Smith eric at trueblade.com
Sat Mar 14 02:44:40 CET 2009


Eric Smith wrote:
> I've added a patch to http://bugs.python.org/issue5237 that implements 
> the basic '{}' functionality in str.format.

I've added another patch to issue 5237 which I believe is production 
quality. I'll work on tests.

 >>> '{} {}'.format(1, 2)
'1 2'




More information about the Python-ideas mailing list