> On 2/9/07, Georg Brandl <[EMAIL PROTECTED]> wrote: > > One question: will there be an exception keyword argument to set the > > traceback, to simplify > > > > e = Error(V) > > e.__traceback__ = tb > > raise e > > > > to > > > > raise Error(V, traceback=tb) > > > > I remember this being proposed, but could not find it in the PEPs.
I believe the original proposal was something like raise E(V).with_traceback(T) My preference would be a method (as opposed to a keyword argument). 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? Collin Winter _______________________________________________ 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
