[issue37826] Document PEP 3134 in tutorials/errors.rst

New submission from Abhilash Raj <raj.abhilash1@gmail.com>: Looking at the docs, I couldn't find the `raise from` documentation anywhere in the Errors and Exceptions page (https://docs.python.org/3/tutorial/errors.html) page, which seems to be the landing page for Python Exceptions. I do see however that it is documented on the top page of https://docs.python.org/3/library/exceptions.html and raise statement's docs (https://docs.python.org/3/reference/simple_stmts.html#raise), both of which are pretty hard to discover. It would be nice to add the docs for `raise from` in the Errors and Exception page too. ---------- assignee: docs@python components: Documentation messages: 349406 nosy: docs@python, maxking priority: normal severity: normal status: open title: Document PEP 3134 in tutorials/errors.rst _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37826> _______________________________________

Raymond Hettinger <raymond.hettinger@gmail.com> added the comment: This is a reasonable suggestion. Would you like to submit a pull request? ---------- nosy: +rhettinger _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37826> _______________________________________

Abhilash Raj <raj.abhilash1@gmail.com> added the comment: Yes, I am gonna work on a PR. ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37826> _______________________________________

Change by Abhilash Raj <raj.abhilash1@gmail.com>: ---------- keywords: +patch pull_requests: +14964 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15243 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37826> _______________________________________

miss-islington <mariatta.wijaya+miss-islington@gmail.com> added the comment: New changeset dcfe111eb5602333135b8776996332a8dcf59392 by Miss Islington (bot) (Abhilash Raj) in branch 'master': bpo-37826: Document exception chaining in Python tutorial for errors. (GH-15243) https://github.com/python/cpython/commit/dcfe111eb5602333135b8776996332a8dcf... ---------- nosy: +miss-islington _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37826> _______________________________________

Change by Abhilash Raj <raj.abhilash1@gmail.com>: ---------- stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37826> _______________________________________

Change by Inada Naoki <songofacandy@gmail.com>: ---------- nosy: +methane nosy_count: 4.0 -> 5.0 pull_requests: +22073 pull_request: https://github.com/python/cpython/pull/23162 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue37826> _______________________________________
participants (4)
-
Abhilash Raj
-
Inada Naoki
-
miss-islington
-
Raymond Hettinger