[Python-Dev] peps: New PEP 490: Chain exceptions at C level
Victor Stinner
victor.stinner at gmail.com
Thu Mar 26 12:36:07 CET 2015
More information about the Python-Dev mailing list
Thu Mar 26 12:36:07 CET 2015
- Previous message (by thread): [Python-Dev] peps: New PEP 490: Chain exceptions at C level
- Next message (by thread): [Python-Dev] peps: New PEP 490: Chain exceptions at C level
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2015-03-26 11:52 GMT+01:00 Andrew Svetlov <andrew.svetlov at 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
- Previous message (by thread): [Python-Dev] peps: New PEP 490: Chain exceptions at C level
- Next message (by thread): [Python-Dev] peps: New PEP 490: Chain exceptions at C level
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list