|
1 | 1 | # -*- coding: utf-8 -*-
|
2 |
| -# Autogenerated by Sphinx on Wed Mar 23 22:08:02 2022 |
| 2 | +# Autogenerated by Sphinx on Tue May 17 12:57:36 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'
|
|
3980 | 3976 | 'is\n'
|
3981 | 3977 | 'applied to separating the commands; the input is split at the '
|
3982 | 3978 | 'first\n'
|
3983 |
| - '";;" pair, even if it is in the middle of a quoted string.\n' |
| 3979 | + '";;" pair, even if it is in the middle of a quoted string. A\n' |
| 3980 | + 'workaround for strings with double semicolons is to use ' |
| 3981 | + 'implicit\n' |
| 3982 | + 'string concatenation "\';\'\';\'" or "";"";"".\n' |
3984 | 3983 | '\n'
|
3985 | 3984 | 'If a file ".pdbrc" exists in the user’s home directory or in '
|
3986 | 3985 | 'the\n'
|
|
6402 | 6401 | 'Examples:\n'
|
6403 | 6402 | '\n'
|
6404 | 6403 | ' import foo # foo imported and bound locally\n'
|
6405 |
| - ' import foo.bar.baz # foo.bar.baz imported, foo bound ' |
6406 |
| - 'locally\n' |
6407 |
| - ' import foo.bar.baz as fbb # foo.bar.baz imported and bound as ' |
6408 |
| - 'fbb\n' |
6409 |
| - ' from foo.bar import baz # foo.bar.baz imported and bound as ' |
6410 |
| - 'baz\n' |
| 6404 | + ' import foo.bar.baz # foo, foo.bar, and foo.bar.baz ' |
| 6405 | + 'imported, foo bound locally\n' |
| 6406 | + ' import foo.bar.baz as fbb # foo, foo.bar, and foo.bar.baz ' |
| 6407 | + 'imported, foo.bar.baz bound as fbb\n' |
| 6408 | + ' from foo.bar import baz # foo, foo.bar, and foo.bar.baz ' |
| 6409 | + 'imported, foo.bar.baz bound as baz\n' |
6411 | 6410 | ' from foo import attr # foo imported and foo.attr bound as '
|
6412 | 6411 | 'attr\n'
|
6413 | 6412 | '\n'
|
|
11091 | 11090 | ' >>> "they\'re bill\'s friends from the UK".title()\n'
|
11092 | 11091 | ' "They\'Re Bill\'S Friends From The Uk"\n'
|
11093 | 11092 | '\n'
|
11094 |
| - ' A workaround for apostrophes can be constructed using ' |
11095 |
| - 'regular\n' |
11096 |
| - ' expressions:\n' |
| 11093 | + ' The "string.capwords()" function does not have this ' |
| 11094 | + 'problem, as it\n' |
| 11095 | + ' splits words on spaces only.\n' |
| 11096 | + '\n' |
| 11097 | + ' Alternatively, a workaround for apostrophes can be ' |
| 11098 | + 'constructed\n' |
| 11099 | + ' using regular expressions:\n' |
11097 | 11100 | '\n'
|
11098 | 11101 | ' >>> import re\n'
|
11099 | 11102 | ' >>> def titlecase(s):\n'
|
@@ -11215,12 +11218,15 @@
|
11215 | 11218 | 'single quotes ("\'") or double quotes ("""). They can also be '
|
11216 | 11219 | 'enclosed\n'
|
11217 | 11220 | 'in matching groups of three single or double quotes (these are\n'
|
11218 |
| - 'generally referred to as *triple-quoted strings*). The ' |
11219 |
| - 'backslash\n' |
11220 |
| - '("\\") character is used to escape characters that otherwise have ' |
11221 |
| - 'a\n' |
11222 |
| - 'special meaning, such as newline, backslash itself, or the quote\n' |
| 11221 | + 'generally referred to as *triple-quoted strings*). The backslash ' |
| 11222 | + '("\\")\n' |
| 11223 | + 'character is used to give special meaning to otherwise ordinary\n' |
| 11224 | + 'characters like "n", which means ‘newline’ when escaped ("\\n"). ' |
| 11225 | + 'It can\n' |
| 11226 | + 'also be used to escape characters that otherwise have a special\n' |
| 11227 | + 'meaning, such as newline, backslash itself, or the quote ' |
11223 | 11228 | 'character.\n'
|
| 11229 | + 'See escape sequences below for examples.\n' |
11224 | 11230 | '\n'
|
11225 | 11231 | 'Bytes literals are always prefixed with "\'b\'" or "\'B\'"; they '
|
11226 | 11232 | 'produce\n'
|
|
12788 | 12794 | 'unwise to use\n'
|
12789 | 12795 | 'them as dictionary keys.)\n'
|
12790 | 12796 | '\n'
|
12791 |
| - 'Dictionaries can be created by placing a comma-separated ' |
12792 |
| - 'list of "key:\n' |
12793 |
| - 'value" pairs within braces, for example: "{\'jack\': 4098, ' |
12794 |
| - "'sjoerd':\n" |
12795 |
| - '4127}" or "{4098: \'jack\', 4127: \'sjoerd\'}", or by the ' |
12796 |
| - '"dict"\n' |
12797 |
| - 'constructor.\n' |
12798 |
| - '\n' |
12799 | 12797 | 'class dict(**kwargs)\n'
|
12800 | 12798 | 'class dict(mapping, **kwargs)\n'
|
12801 | 12799 | 'class dict(iterable, **kwargs)\n'
|
|
0 commit comments