> > Every reasonable use case for this (and several unreasonable ones) > > that I've encountered (and some that I've just imagined) can be better > > addressed with a trace function (sys.set_trace) than by trying to do > > this at the point of call. > > Indeed. Thanks for the correction. > > <op> > relevant doc here:http://docs.python.org/lib/debugger-hooks.html > </op>
Thanks for your help. I was hoping to see a quick and easy way to do this, so this was helpful for this particular situation. I did not want to set up a debugger, although I am aware it's the "correct" thing to do ... Cheers! -- http://mail.python.org/mailman/listinfo/python-list