|
1 | 1 | # -*- coding: utf-8 -*-
|
2 |
| -# Autogenerated by Sphinx on Tue Oct 5 13:43:52 2021 |
| 2 | +# Autogenerated by Sphinx on Fri Nov 5 19:03:45 2021 |
3 | 3 | topics = {'assert': 'The "assert" statement\n'
|
4 | 4 | '**********************\n'
|
5 | 5 | '\n'
|
|
3339 | 3339 | '\n'
|
3340 | 3340 | 'The same keyword should not be repeated in class patterns.\n'
|
3341 | 3341 | '\n'
|
3342 |
| - 'The following is the logical flow for matching a mapping ' |
3343 |
| - 'pattern\n' |
3344 |
| - 'against a subject value:\n' |
| 3342 | + 'The following is the logical flow for matching a class pattern ' |
| 3343 | + 'against\n' |
| 3344 | + 'a subject value:\n' |
3345 | 3345 | '\n'
|
3346 | 3346 | '1. If "name_or_attr" is not an instance of the builtin "type" , '
|
3347 | 3347 | 'raise\n'
|
|
5579 | 5579 | 'operations.\n'
|
5580 | 5580 | '\n'
|
5581 | 5581 | 'If the "global" statement occurs within a block, all uses of '
|
5582 |
| - 'the name\n' |
5583 |
| - 'specified in the statement refer to the binding of that name in ' |
5584 |
| - 'the\n' |
| 5582 | + 'the names\n' |
| 5583 | + 'specified in the statement refer to the bindings of those names ' |
| 5584 | + 'in the\n' |
5585 | 5585 | 'top-level namespace. Names are resolved in the top-level '
|
5586 | 5586 | 'namespace by\n'
|
5587 | 5587 | 'searching the global namespace, i.e. the namespace of the '
|
|
5590 | 5590 | 'namespace\n'
|
5591 | 5591 | 'of the module "builtins". The global namespace is searched '
|
5592 | 5592 | 'first. If\n'
|
5593 |
| - 'the name is not found there, the builtins namespace is ' |
5594 |
| - 'searched. The\n' |
5595 |
| - '"global" statement must precede all uses of the name.\n' |
| 5593 | + 'the names are not found there, the builtins namespace is ' |
| 5594 | + 'searched.\n' |
| 5595 | + 'The "global" statement must precede all uses of the listed ' |
| 5596 | + 'names.\n' |
5596 | 5597 | '\n'
|
5597 | 5598 | 'The "global" statement has the same scope as a name binding '
|
5598 | 5599 | 'operation\n'
|
|
6948 | 6949 | 'trailing underscore characters:\n'
|
6949 | 6950 | '\n'
|
6950 | 6951 | '"_*"\n'
|
6951 |
| - ' Not imported by "from module import *". The special ' |
6952 |
| - 'identifier "_"\n' |
6953 |
| - ' is used in the interactive interpreter to store the result ' |
6954 |
| - 'of the\n' |
6955 |
| - ' last evaluation; it is stored in the "builtins" module. ' |
6956 |
| - 'When not\n' |
6957 |
| - ' in interactive mode, "_" has no special meaning and is not ' |
6958 |
| - 'defined.\n' |
6959 |
| - ' See section The import statement.\n' |
| 6952 | + ' Not imported by "from module import *".\n' |
| 6953 | + '\n' |
| 6954 | + '"_"\n' |
| 6955 | + ' In a "case" pattern within a "match" statement, "_" is a ' |
| 6956 | + 'soft\n' |
| 6957 | + ' keyword that denotes a wildcard.\n' |
| 6958 | + '\n' |
| 6959 | + ' Separately, the interactive interpreter makes the result of ' |
| 6960 | + 'the\n' |
| 6961 | + ' last evaluation available in the variable "_". (It is ' |
| 6962 | + 'stored in the\n' |
| 6963 | + ' "builtins" module, alongside built-in functions like ' |
| 6964 | + '"print".)\n' |
| 6965 | + '\n' |
| 6966 | + ' Elsewhere, "_" is a regular identifier. It is often used to ' |
| 6967 | + 'name\n' |
| 6968 | + ' “special” items, but it is not special to Python itself.\n' |
6960 | 6969 | '\n'
|
6961 | 6970 | ' Note:\n'
|
6962 | 6971 | '\n'
|
6963 | 6972 | ' The name "_" is often used in conjunction with\n'
|
6964 | 6973 | ' internationalization; refer to the documentation for the\n'
|
6965 | 6974 | ' "gettext" module for more information on this '
|
6966 |
| - 'convention.\n' |
| 6975 | + 'convention.It is\n' |
| 6976 | + ' also commonly used for unused variables.\n' |
6967 | 6977 | '\n'
|
6968 | 6978 | '"__*__"\n'
|
6969 | 6979 | ' System-defined names, informally known as “dunder” names. '
|
|
7118 | 7128 | 'trailing underscore characters:\n'
|
7119 | 7129 | '\n'
|
7120 | 7130 | '"_*"\n'
|
7121 |
| - ' Not imported by "from module import *". The special ' |
7122 |
| - 'identifier "_"\n' |
7123 |
| - ' is used in the interactive interpreter to store the result ' |
| 7131 | + ' Not imported by "from module import *".\n' |
| 7132 | + '\n' |
| 7133 | + '"_"\n' |
| 7134 | + ' In a "case" pattern within a "match" statement, "_" is a ' |
| 7135 | + 'soft\n' |
| 7136 | + ' keyword that denotes a wildcard.\n' |
| 7137 | + '\n' |
| 7138 | + ' Separately, the interactive interpreter makes the result ' |
7124 | 7139 | 'of the\n'
|
7125 |
| - ' last evaluation; it is stored in the "builtins" module. ' |
7126 |
| - 'When not\n' |
7127 |
| - ' in interactive mode, "_" has no special meaning and is not ' |
7128 |
| - 'defined.\n' |
7129 |
| - ' See section The import statement.\n' |
| 7140 | + ' last evaluation available in the variable "_". (It is ' |
| 7141 | + 'stored in the\n' |
| 7142 | + ' "builtins" module, alongside built-in functions like ' |
| 7143 | + '"print".)\n' |
| 7144 | + '\n' |
| 7145 | + ' Elsewhere, "_" is a regular identifier. It is often used ' |
| 7146 | + 'to name\n' |
| 7147 | + ' “special” items, but it is not special to Python itself.\n' |
7130 | 7148 | '\n'
|
7131 | 7149 | ' Note:\n'
|
7132 | 7150 | '\n'
|
7133 | 7151 | ' The name "_" is often used in conjunction with\n'
|
7134 | 7152 | ' internationalization; refer to the documentation for '
|
7135 | 7153 | 'the\n'
|
7136 | 7154 | ' "gettext" module for more information on this '
|
7137 |
| - 'convention.\n' |
| 7155 | + 'convention.It is\n' |
| 7156 | + ' also commonly used for unused variables.\n' |
7138 | 7157 | '\n'
|
7139 | 7158 | '"__*__"\n'
|
7140 | 7159 | ' System-defined names, informally known as “dunder” names. '
|
|
7678 | 7697 | 'operations.\n'
|
7679 | 7698 | '\n'
|
7680 | 7699 | 'If the "global" statement occurs within a block, all uses of the '
|
7681 |
| - 'name\n' |
7682 |
| - 'specified in the statement refer to the binding of that name in ' |
| 7700 | + 'names\n' |
| 7701 | + 'specified in the statement refer to the bindings of those names in ' |
7683 | 7702 | 'the\n'
|
7684 | 7703 | 'top-level namespace. Names are resolved in the top-level '
|
7685 | 7704 | 'namespace by\n'
|
|
7688 | 7707 | 'namespace\n'
|
7689 | 7708 | 'of the module "builtins". The global namespace is searched '
|
7690 | 7709 | 'first. If\n'
|
7691 |
| - 'the name is not found there, the builtins namespace is searched. ' |
7692 |
| - 'The\n' |
7693 |
| - '"global" statement must precede all uses of the name.\n' |
| 7710 | + 'the names are not found there, the builtins namespace is ' |
| 7711 | + 'searched.\n' |
| 7712 | + 'The "global" statement must precede all uses of the listed names.\n' |
7694 | 7713 | '\n'
|
7695 | 7714 | 'The "global" statement has the same scope as a name binding '
|
7696 | 7715 | 'operation\n'
|
|
8025 | 8044 | ' of the object truncated to an "Integral" (typically an '
|
8026 | 8045 | '"int").\n'
|
8027 | 8046 | '\n'
|
8028 |
| - ' If "__int__()" is not defined then the built-in function ' |
8029 |
| - '"int()"\n' |
8030 |
| - ' falls back to "__trunc__()".\n', |
| 8047 | + ' The built-in function "int()" falls back to ' |
| 8048 | + '"__trunc__()" if\n' |
| 8049 | + ' neither "__int__()" nor "__index__()" is defined.\n', |
8031 | 8050 | 'objects': 'Objects, values and types\n'
|
8032 | 8051 | '*************************\n'
|
8033 | 8052 | '\n'
|
|
10765 | 10784 | ' of the object truncated to an "Integral" (typically an '
|
10766 | 10785 | '"int").\n'
|
10767 | 10786 | '\n'
|
10768 |
| - ' If "__int__()" is not defined then the built-in function ' |
10769 |
| - '"int()"\n' |
10770 |
| - ' falls back to "__trunc__()".\n' |
| 10787 | + ' The built-in function "int()" falls back to "__trunc__()" ' |
| 10788 | + 'if\n' |
| 10789 | + ' neither "__int__()" nor "__index__()" is defined.\n' |
10771 | 10790 | '\n'
|
10772 | 10791 | '\n'
|
10773 | 10792 | 'With Statement Context Managers\n'
|
|
0 commit comments