I agree that this API is better. If it's not in PEP 344 it should be added.

On 2/9/07, Georg Brandl <[EMAIL PROTECTED]> wrote:
> Collin Winter schrieb:
> > The raise- and except-related PEPs from this discussion have been
> > committed as PEP 3109 and PEP 3110, respectively.
>
> 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.
>
> Georg
>
> _______________________________________________
> Python-3000 mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/python-3000
> Unsubscribe: 
> http://mail.python.org/mailman/options/python-3000/guido%40python.org
>


-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
_______________________________________________
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

Reply via email to