On Sat, May 7, 2011 at 6:54 AM, Terry Reedy <[email protected]> wrote: > def emsg(x): > if isinstance(x,tuple): > x = (x,) > print(The following object caused a proplem: %s" % x) >
Couldn't you just do that unconditionally? print(The following object caused a proplem: %s" % (x,)) Chris Angelico -- http://mail.python.org/mailman/listinfo/python-list
