[Python-ideas] Customizing format()

Carl Johnson cmjohnson.mailinglist at gmail.com
Wed Mar 18 19:33:56 CET 2009


I haven't entirely been following this conversation, so I may be
missing something, but what about something like:

"Balance = ${balance:{minilang}}".format(balance=1.00,
minilang=mini_formatter(thousands_sep=",", ...))

That way, even if the mini-language gets really confusing we'll have
an easy to call function that manages it. I always thought it was
weird that things co



More information about the Python-ideas mailing list