diff options
Diffstat (limited to 'Lib/pydoc_data/topics.py')
-rw-r--r-- | Lib/pydoc_data/topics.py | 83 |
1 files changed, 46 insertions, 37 deletions
diff --git a/Lib/pydoc_data/topics.py b/Lib/pydoc_data/topics.py index 5ce0542041..cd47603e6c 100644 --- a/Lib/pydoc_data/topics.py +++ b/Lib/pydoc_data/topics.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Autogenerated by Sphinx on Thu Jan 13 19:37:48 2022 +# Autogenerated by Sphinx on Thu Feb 3 18:35:23 2022 topics = {'assert': 'The "assert" statement\n' '**********************\n' '\n' @@ -2518,22 +2518,21 @@ topics = {'assert': 'The "assert" statement\n' ' >>> print(sys.exc_info())\n' ' (None, None, None)\n' '\n' - 'The "except*" clause(s) are used for handling "ExceptionGroup`s. ' + 'The "except*" clause(s) are used for handling "ExceptionGroup"s. ' 'The\n' - 'exception type for matching is interpreted as in the case of\n' - ':keyword:`except", but in the case of exception groups we can ' - 'have\n' - 'partial matches when the type matches some of the exceptions in ' - 'the\n' - 'group. This means that multiple except* clauses can execute, ' - 'each\n' - 'handling part of the exception group. Each clause executes once ' - 'and\n' - 'handles an exception group of all matching exceptions. Each ' - 'exception\n' - 'in the group is handled by at most one except* clause, the first ' + 'exception type for matching is interpreted as in the case of ' + '"except",\n' + 'but in the case of exception groups we can have partial matches ' + 'when\n' + 'the type matches some of the exceptions in the group. This means ' 'that\n' - 'matches it.\n' + 'multiple except* clauses can execute, each handling part of the\n' + 'exception group. Each clause executes once and handles an ' + 'exception\n' + 'group of all matching exceptions. Each exception in the group ' + 'is\n' + 'handled by at most one except* clause, the first that matches ' + 'it.\n' '\n' ' >>> try:\n' ' ... raise ExceptionGroup("eg",\n' @@ -8082,7 +8081,11 @@ topics = {'assert': 'The "assert" statement\n' '\n' ' The built-in function "int()" falls back to ' '"__trunc__()" if\n' - ' neither "__int__()" nor "__index__()" is defined.\n', + ' neither "__int__()" nor "__index__()" is defined.\n' + '\n' + ' Changed in version 3.11: The delegation of "int()" to ' + '"__trunc__()"\n' + ' is deprecated.\n', 'objects': 'Objects, values and types\n' '*************************\n' '\n' @@ -8445,12 +8448,12 @@ topics = {'assert': 'The "assert" statement\n' '\n' ' raise_stmt ::= "raise" [expression ["from" expression]]\n' '\n' - 'If no expressions are present, "raise" re-raises the last ' - 'exception\n' - 'that was active in the current scope. If no exception is active ' - 'in\n' - 'the current scope, a "RuntimeError" exception is raised indicating\n' - 'that this is an error.\n' + 'If no expressions are present, "raise" re-raises the exception that ' + 'is\n' + 'currently being handled, which is also known as the *active\n' + 'exception*. If there isn’t currently an active exception, a\n' + '"RuntimeError" exception is raised indicating that this is an ' + 'error.\n' '\n' 'Otherwise, "raise" evaluates the first expression as the exception\n' 'object. It must be either a subclass or an instance of\n' @@ -8505,11 +8508,14 @@ topics = {'assert': 'The "assert" statement\n' ' File "<stdin>", line 4, in <module>\n' ' RuntimeError: Something bad happened\n' '\n' - 'A similar mechanism works implicitly if an exception is raised ' - 'inside\n' - 'an exception handler or a "finally" clause: the previous exception ' - 'is\n' - 'then attached as the new exception’s "__context__" attribute:\n' + 'A similar mechanism works implicitly if a new exception is raised ' + 'when\n' + 'an exception is already being handled. An exception may be ' + 'handled\n' + 'when an "except" or "finally" clause, or a "with" statement, is ' + 'used.\n' + 'The previous exception is then attached as the new exception’s\n' + '"__context__" attribute:\n' '\n' ' >>> try:\n' ' ... print(1 / 0)\n' @@ -10995,6 +11001,10 @@ topics = {'assert': 'The "assert" statement\n' 'if\n' ' neither "__int__()" nor "__index__()" is defined.\n' '\n' + ' Changed in version 3.11: The delegation of "int()" to ' + '"__trunc__()"\n' + ' is deprecated.\n' + '\n' '\n' 'With Statement Context Managers\n' '===============================\n' @@ -12562,17 +12572,16 @@ topics = {'assert': 'The "assert" statement\n' ' >>> print(sys.exc_info())\n' ' (None, None, None)\n' '\n' - 'The "except*" clause(s) are used for handling "ExceptionGroup`s. The\n' - 'exception type for matching is interpreted as in the case of\n' - ':keyword:`except", but in the case of exception groups we can have\n' - 'partial matches when the type matches some of the exceptions in the\n' - 'group. This means that multiple except* clauses can execute, each\n' - 'handling part of the exception group. Each clause executes once and\n' - 'handles an exception group of all matching exceptions. Each ' - 'exception\n' - 'in the group is handled by at most one except* clause, the first ' + 'The "except*" clause(s) are used for handling "ExceptionGroup"s. The\n' + 'exception type for matching is interpreted as in the case of ' + '"except",\n' + 'but in the case of exception groups we can have partial matches when\n' + 'the type matches some of the exceptions in the group. This means ' 'that\n' - 'matches it.\n' + 'multiple except* clauses can execute, each handling part of the\n' + 'exception group. Each clause executes once and handles an exception\n' + 'group of all matching exceptions. Each exception in the group is\n' + 'handled by at most one except* clause, the first that matches it.\n' '\n' ' >>> try:\n' ' ... raise ExceptionGroup("eg",\n' |