[Python-ideas] String formatting and namedtuple

Eric Smith eric at trueblade.com
Mon Mar 9 13:20:51 CET 2009


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

Read the note in the issue; this patch is not ready for production. But 
it will let you play with the feature.

I like it, mainly because it's so much quicker to type '{}' than '{0}' 
because you don't have to shift-unshift-shift (on my US English 
keyboard). If we decide to add this feature I hope I can finish it 
before PyCon, or worst case finish it during the sprints.



More information about the Python-ideas mailing list