|
1 | 1 | # -*- coding: utf-8 -*- |
2 | | -# Autogenerated by Sphinx on Wed Mar 23 20:11:40 2022 |
| 2 | +# Autogenerated by Sphinx on Mon Jun 6 12:53:10 2022 |
3 | 3 | topics = {'assert': 'The "assert" statement\n' |
4 | 4 | '**********************\n' |
5 | 5 | '\n' |
|
93 | 93 | ' optionally in parentheses, the object is assigned to that ' |
94 | 94 | 'target.\n' |
95 | 95 | '\n' |
96 | | - '* Else: The object must be an iterable with the same number of ' |
97 | | - 'items\n' |
98 | | - ' as there are targets in the target list, and the items are ' |
99 | | - 'assigned,\n' |
100 | | - ' from left to right, to the corresponding targets.\n' |
| 96 | + '* Else:\n' |
101 | 97 | '\n' |
102 | 98 | ' * If the target list contains one target prefixed with an ' |
103 | 99 | 'asterisk,\n' |
|
4812 | 4808 | 'is\n' |
4813 | 4809 | 'applied to separating the commands; the input is split at the ' |
4814 | 4810 | 'first\n' |
4815 | | - '";;" pair, even if it is in the middle of a quoted string.\n' |
| 4811 | + '";;" pair, even if it is in the middle of a quoted string. A\n' |
| 4812 | + 'workaround for strings with double semicolons is to use ' |
| 4813 | + 'implicit\n' |
| 4814 | + 'string concatenation "\';\'\';\'" or "";"";"".\n' |
4816 | 4815 | '\n' |
4817 | 4816 | 'If a file ".pdbrc" exists in the user’s home directory or in ' |
4818 | 4817 | 'the\n' |
|
7269 | 7268 | 'Examples:\n' |
7270 | 7269 | '\n' |
7271 | 7270 | ' import foo # foo imported and bound locally\n' |
7272 | | - ' import foo.bar.baz # foo.bar.baz imported, foo bound ' |
7273 | | - 'locally\n' |
7274 | | - ' import foo.bar.baz as fbb # foo.bar.baz imported and bound as ' |
7275 | | - 'fbb\n' |
7276 | | - ' from foo.bar import baz # foo.bar.baz imported and bound as ' |
7277 | | - 'baz\n' |
| 7271 | + ' import foo.bar.baz # foo, foo.bar, and foo.bar.baz ' |
| 7272 | + 'imported, foo bound locally\n' |
| 7273 | + ' import foo.bar.baz as fbb # foo, foo.bar, and foo.bar.baz ' |
| 7274 | + 'imported, foo.bar.baz bound as fbb\n' |
| 7275 | + ' from foo.bar import baz # foo, foo.bar, and foo.bar.baz ' |
| 7276 | + 'imported, foo.bar.baz bound as baz\n' |
7278 | 7277 | ' from foo import attr # foo imported and foo.attr bound as ' |
7279 | 7278 | 'attr\n' |
7280 | 7279 | '\n' |
|
8189 | 8188 | '| "x(arguments...)", "x.attribute" | ' |
8190 | 8189 | 'attribute reference |\n' |
8191 | 8190 | '+-------------------------------------------------+---------------------------------------+\n' |
8192 | | - '| "await" "x" | ' |
| 8191 | + '| "await x" | ' |
8193 | 8192 | 'Await expression |\n' |
8194 | 8193 | '+-------------------------------------------------+---------------------------------------+\n' |
8195 | 8194 | '| "**" | ' |
|
8225 | 8224 | '| ">=", "!=", "==" | ' |
8226 | 8225 | 'tests and identity tests |\n' |
8227 | 8226 | '+-------------------------------------------------+---------------------------------------+\n' |
8228 | | - '| "not" "x" | ' |
| 8227 | + '| "not x" | ' |
8229 | 8228 | 'Boolean NOT |\n' |
8230 | 8229 | '+-------------------------------------------------+---------------------------------------+\n' |
8231 | 8230 | '| "and" | ' |
|
11988 | 11987 | ' >>> "they\'re bill\'s friends from the UK".title()\n' |
11989 | 11988 | ' "They\'Re Bill\'S Friends From The Uk"\n' |
11990 | 11989 | '\n' |
11991 | | - ' A workaround for apostrophes can be constructed using ' |
11992 | | - 'regular\n' |
11993 | | - ' expressions:\n' |
| 11990 | + ' The "string.capwords()" function does not have this ' |
| 11991 | + 'problem, as it\n' |
| 11992 | + ' splits words on spaces only.\n' |
| 11993 | + '\n' |
| 11994 | + ' Alternatively, a workaround for apostrophes can be ' |
| 11995 | + 'constructed\n' |
| 11996 | + ' using regular expressions:\n' |
11994 | 11997 | '\n' |
11995 | 11998 | ' >>> import re\n' |
11996 | 11999 | ' >>> def titlecase(s):\n' |
@@ -12112,12 +12115,15 @@ |
12112 | 12115 | 'single quotes ("\'") or double quotes ("""). They can also be ' |
12113 | 12116 | 'enclosed\n' |
12114 | 12117 | 'in matching groups of three single or double quotes (these are\n' |
12115 | | - 'generally referred to as *triple-quoted strings*). The ' |
12116 | | - 'backslash\n' |
12117 | | - '("\\") character is used to escape characters that otherwise have ' |
12118 | | - 'a\n' |
12119 | | - 'special meaning, such as newline, backslash itself, or the quote\n' |
| 12118 | + 'generally referred to as *triple-quoted strings*). The backslash ' |
| 12119 | + '("\\")\n' |
| 12120 | + 'character is used to give special meaning to otherwise ordinary\n' |
| 12121 | + 'characters like "n", which means ‘newline’ when escaped ("\\n"). ' |
| 12122 | + 'It can\n' |
| 12123 | + 'also be used to escape characters that otherwise have a special\n' |
| 12124 | + 'meaning, such as newline, backslash itself, or the quote ' |
12120 | 12125 | 'character.\n' |
| 12126 | + 'See escape sequences below for examples.\n' |
12121 | 12127 | '\n' |
12122 | 12128 | 'Bytes literals are always prefixed with "\'b\'" or "\'B\'"; they ' |
12123 | 12129 | 'produce\n' |
|
13735 | 13741 | 'unwise to use\n' |
13736 | 13742 | 'them as dictionary keys.)\n' |
13737 | 13743 | '\n' |
13738 | | - 'Dictionaries can be created by placing a comma-separated ' |
13739 | | - 'list of "key:\n' |
13740 | | - 'value" pairs within braces, for example: "{\'jack\': 4098, ' |
13741 | | - "'sjoerd':\n" |
13742 | | - '4127}" or "{4098: \'jack\', 4127: \'sjoerd\'}", or by the ' |
13743 | | - '"dict"\n' |
13744 | | - 'constructor.\n' |
13745 | | - '\n' |
13746 | 13744 | 'class dict(**kwargs)\n' |
13747 | 13745 | 'class dict(mapping, **kwargs)\n' |
13748 | 13746 | 'class dict(iterable, **kwargs)\n' |
|
0 commit comments