[Python-ideas] String formatting and namedtuple

Carl Johnson carl at carlsensei.com
Wed Feb 11 02:21:33 CET 2009

See if you can add a patch for this too:

 >>> print( 'one = {x}s, two = {y}s'.format(**nt))
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
TypeError: format() argument after ** must be a mapping, not Nt

More information about the Python-ideas mailing list