\>> I hate calling methods on string literals, I think it looks very odd >> to have code like this: >> >> "Displaying {0} of {1} revisions".format(x, y) > > Ugh! Good point.
This objection was made years ago when we introduced "separator".join(list_of_things), and I don't think ignoring it has caused any casualties. In fact, it serves as an early reminder to the user that string literals are, in fact, objects like all others. -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com