On Wed, Jan 14, 2009 at 12:09 PM, spir <denis.s...@free.fr> wrote: > Hello, > > I rather often use exceptions as information providers at design or debug > time. A typical use > of mine is to have a test version of methods that wrap standard version: > > def run(): > do stuff > that may > raise exc > def testRun(): > try: > run() > except Error,error: > sys.error.write(str(error))
I use traceback.print_exc() for this. Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor