[Python-checkins] gh-102921: [doc] Clarify `exc` argument name in `BaseExceptionGroup` is plural (GH-102922)

miss-islington webhook-mailer at python.org
Wed Mar 22 14:22:08 EDT 2023


https://github.com/python/cpython/commit/f1b96737a4e42c96141927b2ea3976eb84557ed6
commit: f1b96737a4e42c96141927b2ea3976eb84557ed6
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2023-03-22T11:21:59-07:00
summary:

gh-102921: [doc] Clarify `exc` argument name in `BaseExceptionGroup` is plural (GH-102922)

(cherry picked from commit 9b19d3936d7cabef67698636d2faf6fa23a95059)

Co-authored-by: Kevin Kirsche <Kev.Kirsche+GitHub at gmail.com>

files:
M Doc/library/exceptions.rst

diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst
index 4a57e9c87993..18c3f47dddc0 100644
--- a/Doc/library/exceptions.rst
+++ b/Doc/library/exceptions.rst
@@ -948,8 +948,8 @@ their subgroups based on the types of the contained exceptions.
       these fields do not need to be updated by :meth:`derive`. ::
 
          >>> class MyGroup(ExceptionGroup):
-         ...     def derive(self, exc):
-         ...         return MyGroup(self.message, exc)
+         ...     def derive(self, excs):
+         ...         return MyGroup(self.message, excs)
          ...
          >>> e = MyGroup("eg", [ValueError(1), TypeError(2)])
          >>> e.add_note("a note")



More information about the Python-checkins mailing list