At 02:57 PM 2/9/2007 -0800, Guido van Rossum wrote: > > On 2/9/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > > I agree that this API is better. If it's not in PEP 344 it should be > added. > > > > Should this be added to PEP 344 or 3109? That is, do you want to see > > it before Python 3? > >I think storing the traceback in the exception is a 3.0 feature, since >it depends on the effective 'del e' at the end of the except clause >for avoiding most cycles.
We would then have to have a Python 3.0 API to fetch the traceback, otherwise there's no way to write code that works in both 2.6 and 3.0 and gets a traceback. Did we decide to keep sys.exc_info()? If so, then that would presumably work. _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
