This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Vladimir Ryabtsev
Recipients Vladimir Ryabtsev, docs@python
Date 2020-10-28.08:31:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1603873891.9.0.500762071742.issue42179@roundup.psfhosted.org>
In-reply-to
Content
A new section has been added to the page as a result of https://bugs.python.org/issue37826. The change: https://github.com/python/cpython/commit/dcfe111eb5602333135b8776996332a8dcf59392

The wording it uses (in the beginning of section 8.5), defines chaining as setting __cause__ attribute in an exception, and later states that "Exception chaining happens automatically when an exception is raised inside an exception handler or finally section". This may lead the reader to a wrong idea that re-raising an exception without "from" in "except" and "finally" automatically sets __cause__. In reality it sets only __context__ attribute, which is similar concept to __cause__, but work a bit differently, as explained in library/exceptions.rst. I suggest to mention that difference and provide a link to the main article.
History
Date User Action Args
2020-10-28 08:31:31Vladimir Ryabtsevsetrecipients: + Vladimir Ryabtsev, docs@python
2020-10-28 08:31:31Vladimir Ryabtsevsetmessageid: <1603873891.9.0.500762071742.issue42179@roundup.psfhosted.org>
2020-10-28 08:31:31Vladimir Ryabtsevlinkissue42179 messages
2020-10-28 08:31:31Vladimir Ryabtsevcreate