[docs] [issue37891] Exceptions tutorial page does not mention raise from

Niels Albers report at bugs.python.org
Tue Aug 20 03:21:07 EDT 2019


New submission from Niels Albers <nralbers at gmail.com>:

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.

----------
assignee: docs at python
components: Documentation
messages: 349994
nosy: Niels Albers, docs at python
priority: normal
severity: normal
status: open
title: Exceptions tutorial page does not mention raise from
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37891>
_______________________________________


More information about the docs mailing list