Python wart

Chris Angelico rosuav at gmail.com
Fri Nov 1 08:59:24 CET 2013


On Fri, Nov 1, 2013 at 6:11 PM, Peter Cacioppi <peter.cacioppi at gmail.com> wrote:
> The printf syntax in C isn't any wonderful thing, and there is no obligation to provide some Python version of it.

Maybe, but it's supported by so many languages that it is of value.
Though Python's use of the % operator does lead to edge cases (a
single argument, except if it's a tuple, even though a tuple could be
accepted by %r), so a printf() function might be cleaner.

ChrisA



More information about the Python-list mailing list