import sys def debug(*s, sep=" ", nl="\n"): print >>sys.stderr, sep.join(map(str, s)), nl, pass debug("There was an error on line", 10, ":", nl="") debug(1,2,3,4,5, sep="-")
Of course, by that point you may as well use the logging module.
Of course, by that point you may as well use the logging module.