Message349994
raise <Exception> from <exception instance> has been in the language since python 3, yet the tutorial page teaching about exceptions does not mention it. (see https://docs.python.org/3.7/tutorial/errors.html#raising-exceptions)
It would be especially helpful to language newcomers to touch on the possibility of passing error context when raising a new exception in an exception handler. |
|
Date |
User |
Action |
Args |
2019-08-20 07:21:07 | Niels Albers | set | recipients:
+ Niels Albers, docs@python |
2019-08-20 07:21:07 | Niels Albers | set | messageid: <1566285667.91.0.992762773609.issue37891@roundup.psfhosted.org> |
2019-08-20 07:21:07 | Niels Albers | link | issue37891 messages |
2019-08-20 07:21:07 | Niels Albers | create | |
|