| Store | Cart

Re: [Python-Dev] peps: New PEP 490: Chain exceptions at C level

From: Victor Stinner <vict...@gmail.com>
Thu, 26 Mar 2015 12:36:07 +0100
2015-03-26 11:52 GMT+01:00 Andrew Svetlov <andr...@gmail.com>:
> There is another issue: exception chain is not set up on exception> creation in python code, only on throwing.

I'm not suprised of that.

> Thus I have to assign `__context__` and `__cause__` attributes> manually if I want to call `future.set_exception(exc)` instead of> `raise exc`.

Do you mean that we need an helper to make this task even simpler? Or
do you suggest to set them automatically in the constructor?

Victor
_______________________________________________
Python-Dev mailing list
Pyth...@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: https://mail.python.org/mailman/options/python-dev/python-dev-ml%40activestate.com

Recent Messages in this Thread
Serhiy Storchaka Mar 26, 2015 09:11 am
Andrew Svetlov Mar 26, 2015 10:52 am
Victor Stinner Mar 26, 2015 11:36 am
Andrew Svetlov Mar 26, 2015 12:45 pm
Victor Stinner Mar 26, 2015 12:31 pm
Messages in this thread