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

2015年3月26日 04:38:05 -0700

2015年03月26日 11:52 GMT+01:00 Andrew Svetlov <[email protected]>:
> 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
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to