summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc_data/topics.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/pydoc_data/topics.py')
-rw-r--r--Lib/pydoc_data/topics.py229
1 files changed, 112 insertions, 117 deletions
diff --git a/Lib/pydoc_data/topics.py b/Lib/pydoc_data/topics.py
index 06422d2..9cdf477 100644
--- a/Lib/pydoc_data/topics.py
+++ b/Lib/pydoc_data/topics.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Autogenerated by Sphinx on Mon Oct 2 14:27:48 2023
+# Autogenerated by Sphinx on Mon Dec 4 17:55:07 2023
# as part of the release process.
topics = {'assert': 'The "assert" statement\n'
'**********************\n'
@@ -552,30 +552,30 @@ topics = {'assert': 'The "assert" statement\n'
'[2] In pattern matching, a sequence is defined as one of the\n'
' following:\n'
'\n'
- ' * a class that inherits from "collections.abc.Sequence"\n'
+ ' * a class that inherits from "collections.abc.Sequence"\n'
'\n'
- ' * a Python class that has been registered as\n'
- ' "collections.abc.Sequence"\n'
+ ' * a Python class that has been registered as\n'
+ ' "collections.abc.Sequence"\n'
'\n'
- ' * a builtin class that has its (CPython) '
- '"Py_TPFLAGS_SEQUENCE"\n'
- ' bit set\n'
+ ' * a builtin class that has its (CPython) "Py_TPFLAGS_SEQUENCE" '
+ 'bit\n'
+ ' set\n'
'\n'
- ' * a class that inherits from any of the above\n'
+ ' * a class that inherits from any of the above\n'
'\n'
' The following standard library classes are sequences:\n'
'\n'
- ' * "array.array"\n'
+ ' * "array.array"\n'
'\n'
- ' * "collections.deque"\n'
+ ' * "collections.deque"\n'
'\n'
- ' * "list"\n'
+ ' * "list"\n'
'\n'
- ' * "memoryview"\n'
+ ' * "memoryview"\n'
'\n'
- ' * "range"\n'
+ ' * "range"\n'
'\n'
- ' * "tuple"\n'
+ ' * "tuple"\n'
'\n'
' Note:\n'
'\n'
@@ -586,16 +586,16 @@ topics = {'assert': 'The "assert" statement\n'
'[3] In pattern matching, a mapping is defined as one of the '
'following:\n'
'\n'
- ' * a class that inherits from "collections.abc.Mapping"\n'
+ ' * a class that inherits from "collections.abc.Mapping"\n'
'\n'
- ' * a Python class that has been registered as\n'
- ' "collections.abc.Mapping"\n'
+ ' * a Python class that has been registered as\n'
+ ' "collections.abc.Mapping"\n'
'\n'
- ' * a builtin class that has its (CPython) '
- '"Py_TPFLAGS_MAPPING"\n'
- ' bit set\n'
+ ' * a builtin class that has its (CPython) "Py_TPFLAGS_MAPPING" '
+ 'bit\n'
+ ' set\n'
'\n'
- ' * a class that inherits from any of the above\n'
+ ' * a class that inherits from any of the above\n'
'\n'
' The standard library classes "dict" and '
'"types.MappingProxyType"\n'
@@ -1181,16 +1181,23 @@ topics = {'assert': 'The "assert" statement\n'
'attribute references, which most objects do. This '
'object is then\n'
'asked to produce the attribute whose name is the '
- 'identifier. This\n'
- 'production can be customized by overriding the '
- '"__getattr__()" method.\n'
- 'If this attribute is not available, the exception '
- '"AttributeError" is\n'
- 'raised. Otherwise, the type and value of the object '
- 'produced is\n'
- 'determined by the object. Multiple evaluations of '
- 'the same attribute\n'
- 'reference may yield different objects.\n',
+ 'identifier. The type\n'
+ 'and value produced is determined by the object. '
+ 'Multiple evaluations\n'
+ 'of the same attribute reference may yield different '
+ 'objects.\n'
+ '\n'
+ 'This production can be customized by overriding the\n'
+ '"__getattribute__()" method or the "__getattr__()" '
+ 'method. The\n'
+ '"__getattribute__()" method is called first and '
+ 'either returns a value\n'
+ 'or raises "AttributeError" if the attribute is not '
+ 'available.\n'
+ '\n'
+ 'If an "AttributeError" is raised and the object has '
+ 'a "__getattr__()"\n'
+ 'method, that method is called as a fallback.\n',
'augassign': 'Augmented assignment statements\n'
'*******************************\n'
'\n'
@@ -2872,18 +2879,19 @@ topics = {'assert': 'The "assert" statement\n'
' bindings made during a successful pattern match outlive the\n'
' executed block and can be used after the match statement**.\n'
'\n'
- ' Note:\n'
+ ' Note:\n'
'\n'
- ' During failed pattern matches, some subpatterns may '
- 'succeed.\n'
- ' Do not rely on bindings being made for a failed match.\n'
- ' Conversely, do not rely on variables remaining unchanged '
- 'after\n'
- ' a failed match. The exact behavior is dependent on\n'
- ' implementation and may vary. This is an intentional '
- 'decision\n'
- ' made to allow different implementations to add '
- 'optimizations.\n'
+ ' During failed pattern matches, some subpatterns may '
+ 'succeed. Do\n'
+ ' not rely on bindings being made for a failed match. '
+ 'Conversely,\n'
+ ' do not rely on variables remaining unchanged after a '
+ 'failed\n'
+ ' match. The exact behavior is dependent on implementation '
+ 'and may\n'
+ ' vary. This is an intentional decision made to allow '
+ 'different\n'
+ ' implementations to add optimizations.\n'
'\n'
'3. If the pattern succeeds, the corresponding guard (if present) '
'is\n'
@@ -3535,9 +3543,10 @@ topics = {'assert': 'The "assert" statement\n'
'* convert "P1" to a keyword pattern using "CLS.__match_args__"\n'
'\n'
'* For each keyword argument "attr=P2":\n'
- ' * "hasattr(<subject>, "attr")"\n'
'\n'
- ' * "P2" matches "<subject>.attr"\n'
+ ' * "hasattr(<subject>, "attr")"\n'
+ '\n'
+ ' * "P2" matches "<subject>.attr"\n'
'\n'
'* … and so on for the corresponding keyword argument/pattern '
'pair.\n'
@@ -3998,30 +4007,30 @@ topics = {'assert': 'The "assert" statement\n'
'[2] In pattern matching, a sequence is defined as one of the\n'
' following:\n'
'\n'
- ' * a class that inherits from "collections.abc.Sequence"\n'
+ ' * a class that inherits from "collections.abc.Sequence"\n'
'\n'
- ' * a Python class that has been registered as\n'
- ' "collections.abc.Sequence"\n'
+ ' * a Python class that has been registered as\n'
+ ' "collections.abc.Sequence"\n'
'\n'
- ' * a builtin class that has its (CPython) '
- '"Py_TPFLAGS_SEQUENCE"\n'
- ' bit set\n'
+ ' * a builtin class that has its (CPython) '
+ '"Py_TPFLAGS_SEQUENCE" bit\n'
+ ' set\n'
'\n'
- ' * a class that inherits from any of the above\n'
+ ' * a class that inherits from any of the above\n'
'\n'
' The following standard library classes are sequences:\n'
'\n'
- ' * "array.array"\n'
+ ' * "array.array"\n'
'\n'
- ' * "collections.deque"\n'
+ ' * "collections.deque"\n'
'\n'
- ' * "list"\n'
+ ' * "list"\n'
'\n'
- ' * "memoryview"\n'
+ ' * "memoryview"\n'
'\n'
- ' * "range"\n'
+ ' * "range"\n'
'\n'
- ' * "tuple"\n'
+ ' * "tuple"\n'
'\n'
' Note:\n'
'\n'
@@ -4032,16 +4041,16 @@ topics = {'assert': 'The "assert" statement\n'
'[3] In pattern matching, a mapping is defined as one of the '
'following:\n'
'\n'
- ' * a class that inherits from "collections.abc.Mapping"\n'
+ ' * a class that inherits from "collections.abc.Mapping"\n'
'\n'
- ' * a Python class that has been registered as\n'
- ' "collections.abc.Mapping"\n'
+ ' * a Python class that has been registered as\n'
+ ' "collections.abc.Mapping"\n'
'\n'
- ' * a builtin class that has its (CPython) '
- '"Py_TPFLAGS_MAPPING"\n'
- ' bit set\n'
+ ' * a builtin class that has its (CPython) '
+ '"Py_TPFLAGS_MAPPING" bit\n'
+ ' set\n'
'\n'
- ' * a class that inherits from any of the above\n'
+ ' * a class that inherits from any of the above\n'
'\n'
' The standard library classes "dict" and '
'"types.MappingProxyType"\n'
@@ -6078,18 +6087,17 @@ topics = {'assert': 'The "assert" statement\n'
'\n'
'The grammar for a replacement field is as follows:\n'
'\n'
- ' replacement_field ::= "{" [field_name] ["!" '
- 'conversion] [":" format_spec] "}"\n'
- ' field_name ::= arg_name ("." attribute_name | '
- '"[" element_index "]")*\n'
- ' arg_name ::= [identifier | digit+]\n'
- ' attribute_name ::= identifier\n'
- ' element_index ::= digit+ | index_string\n'
- ' index_string ::= <any source character except '
- '"]"> +\n'
- ' conversion ::= "r" | "s" | "a"\n'
- ' format_spec ::= <described in the next '
- 'section>\n'
+ ' replacement_field ::= "{" [field_name] ["!" conversion] '
+ '[":" format_spec] "}"\n'
+ ' field_name ::= arg_name ("." attribute_name | "[" '
+ 'element_index "]")*\n'
+ ' arg_name ::= [identifier | digit+]\n'
+ ' attribute_name ::= identifier\n'
+ ' element_index ::= digit+ | index_string\n'
+ ' index_string ::= <any source character except "]"> '
+ '+\n'
+ ' conversion ::= "r" | "s" | "a"\n'
+ ' format_spec ::= <described in the next section>\n'
'\n'
'In less formal terms, the replacement field can start with '
'a\n'
@@ -6275,43 +6283,37 @@ topics = {'assert': 'The "assert" statement\n'
'The meaning of the various alignment options is as '
'follows:\n'
'\n'
- ' '
'+-----------+------------------------------------------------------------+\n'
- ' | Option | '
+ '| Option | '
'Meaning '
'|\n'
- ' '
'|===========|============================================================|\n'
- ' | "\'<\'" | Forces the field to be left-aligned '
- 'within the available |\n'
- ' | | space (this is the default for most '
+ '| "\'<\'" | Forces the field to be left-aligned within '
+ 'the available |\n'
+ '| | space (this is the default for most '
'objects). |\n'
- ' '
'+-----------+------------------------------------------------------------+\n'
- ' | "\'>\'" | Forces the field to be right-aligned '
- 'within the available |\n'
- ' | | space (this is the default for '
+ '| "\'>\'" | Forces the field to be right-aligned within '
+ 'the available |\n'
+ '| | space (this is the default for '
'numbers). |\n'
- ' '
'+-----------+------------------------------------------------------------+\n'
- ' | "\'=\'" | Forces the padding to be placed after '
- 'the sign (if any) |\n'
- ' | | but before the digits. This is used for '
+ '| "\'=\'" | Forces the padding to be placed after the '
+ 'sign (if any) |\n'
+ '| | but before the digits. This is used for '
'printing fields |\n'
- ' | | in the form ‘+000000120’. This alignment '
+ '| | in the form ‘+000000120’. This alignment '
'option is only |\n'
- ' | | valid for numeric types. It becomes the '
+ '| | valid for numeric types. It becomes the '
'default for |\n'
- ' | | numbers when ‘0’ immediately precedes the '
+ '| | numbers when ‘0’ immediately precedes the '
'field width. |\n'
- ' '
'+-----------+------------------------------------------------------------+\n'
- ' | "\'^\'" | Forces the field to be centered within '
- 'the available |\n'
- ' | | '
+ '| "\'^\'" | Forces the field to be centered within the '
+ 'available |\n'
+ '| | '
'space. '
'|\n'
- ' '
'+-----------+------------------------------------------------------------+\n'
'\n'
'Note that unless a minimum field width is defined, the '
@@ -6324,30 +6326,25 @@ topics = {'assert': 'The "assert" statement\n'
'be one of\n'
'the following:\n'
'\n'
- ' '
'+-----------+------------------------------------------------------------+\n'
- ' | Option | '
+ '| Option | '
'Meaning '
'|\n'
- ' '
'|===========|============================================================|\n'
- ' | "\'+\'" | indicates that a sign should be used for '
+ '| "\'+\'" | indicates that a sign should be used for '
'both positive as |\n'
- ' | | well as negative '
+ '| | well as negative '
'numbers. |\n'
- ' '
'+-----------+------------------------------------------------------------+\n'
- ' | "\'-\'" | indicates that a sign should be used '
- 'only for negative |\n'
- ' | | numbers (this is the default '
+ '| "\'-\'" | indicates that a sign should be used only '
+ 'for negative |\n'
+ '| | numbers (this is the default '
'behavior). |\n'
- ' '
'+-----------+------------------------------------------------------------+\n'
- ' | space | indicates that a leading space should be '
- 'used on positive |\n'
- ' | | numbers, and a minus sign on negative '
+ '| space | indicates that a leading space should be used '
+ 'on positive |\n'
+ '| | numbers, and a minus sign on negative '
'numbers. |\n'
- ' '
'+-----------+------------------------------------------------------------+\n'
'\n'
'The "\'z\'" option coerces negative zero floating-point '
@@ -12489,11 +12486,9 @@ topics = {'assert': 'The "assert" statement\n'
'bytes\n'
'literals.\n'
'\n'
- ' Changed in version 3.6: Unrecognized escape sequences produce '
- 'a\n'
- ' "DeprecationWarning". In a future Python version they will be '
- 'a\n'
- ' "SyntaxWarning" and eventually a "SyntaxError".\n'
+ 'Changed in version 3.6: Unrecognized escape sequences produce a\n'
+ '"DeprecationWarning". In a future Python version they will be a\n'
+ '"SyntaxWarning" and eventually a "SyntaxError".\n'
'\n'
'Even in a raw literal, quotes can be escaped with a backslash, '
'but the\n'