Python wart
Chris Angelico
rosuav at gmail.com
Thu Oct 31 21:54:49 EDT 2013
On Fri, Nov 1, 2013 at 12:53 PM, Chris Angelico <rosuav at gmail.com> wrote:
> orig_print = print
> def print(fmt, *args, **kwargs):
> orig_print(fmt%args, **kwargs)
PS. To be courteous to subsequent developers, you might want to
instead leave print as it is, and create your own printf:
def printf(fmt, *args, **kwargs):
print(fmt%args, **kwargs)
Take your pick, whichever way works for you.
ChrisA
More information about the Python-list
mailing list