[Ka-Ping Yee] > It occurred to me as i was messing around with handling and re-raising > exceptions that tossing around these (type, value, traceback) triples > is irritating and error-prone. > > How about just passing around a single value? All we'd have to do is > put the traceback in value.traceback.
I proposed the same thing a while back (during the early hours of writing PEP 340). It won't fly as long as we have string exceptions (since there's nowhere to put the traceback) but once those are dead I like it a lot. -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com