|
1 | 1 | # -*- coding: utf-8 -*-
|
2 |
| -# Autogenerated by Sphinx on Tue Apr 5 20:53:43 2022 |
| 2 | +# Autogenerated by Sphinx on Fri May 6 23:53:34 2022 |
3 | 3 | topics = {'assert': 'The "assert" statement\n'
|
4 | 4 | '**********************\n'
|
5 | 5 | '\n'
|
|
6222 | 6222 | '+-----------+------------------------------------------------------------+\n'
|
6223 | 6223 | '\n'
|
6224 | 6224 | 'The "\'z\'" option coerces negative zero floating-point '
|
6225 |
| - 'values to positive\n' |
6226 |
| - 'zero after rounding to the format precision. This option ' |
6227 |
| - 'is only valid for\n' |
6228 |
| - 'floating-point presentation types.\n' |
| 6225 | + 'values to\n' |
| 6226 | + 'positive zero after rounding to the format precision. This ' |
| 6227 | + 'option is\n' |
| 6228 | + 'only valid for floating-point presentation types.\n' |
6229 | 6229 | '\n'
|
6230 | 6230 | 'Changed in version 3.11: Added the "\'z\'" option (see also '
|
6231 |
| - '**PEP 682**).\n' |
| 6231 | + '**PEP\n' |
| 6232 | + '682**).\n' |
6232 | 6233 | '\n'
|
6233 | 6234 | 'The "\'#\'" option causes the “alternate form” to be used '
|
6234 | 6235 | 'for the\n'
|
|
7329 | 7330 | 'Examples:\n'
|
7330 | 7331 | '\n'
|
7331 | 7332 | ' import foo # foo imported and bound locally\n'
|
7332 |
| - ' import foo.bar.baz # foo.bar.baz imported, foo bound ' |
7333 |
| - 'locally\n' |
7334 |
| - ' import foo.bar.baz as fbb # foo.bar.baz imported and bound as ' |
7335 |
| - 'fbb\n' |
7336 |
| - ' from foo.bar import baz # foo.bar.baz imported and bound as ' |
7337 |
| - 'baz\n' |
| 7333 | + ' import foo.bar.baz # foo, foo.bar, and foo.bar.baz ' |
| 7334 | + 'imported, foo bound locally\n' |
| 7335 | + ' import foo.bar.baz as fbb # foo, foo.bar, and foo.bar.baz ' |
| 7336 | + 'imported, foo.bar.baz bound as fbb\n' |
| 7337 | + ' from foo.bar import baz # foo, foo.bar, and foo.bar.baz ' |
| 7338 | + 'imported, foo.bar.baz bound as baz\n' |
7338 | 7339 | ' from foo import attr # foo imported and foo.attr bound as '
|
7339 | 7340 | 'attr\n'
|
7340 | 7341 | '\n'
|
|
12062 | 12063 | ' >>> "they\'re bill\'s friends from the UK".title()\n'
|
12063 | 12064 | ' "They\'Re Bill\'S Friends From The Uk"\n'
|
12064 | 12065 | '\n'
|
12065 |
| - ' A workaround for apostrophes can be constructed using ' |
12066 |
| - 'regular\n' |
12067 |
| - ' expressions:\n' |
| 12066 | + ' The "string.capwords()" function does not have this ' |
| 12067 | + 'problem, as it\n' |
| 12068 | + ' splits words on spaces only.\n' |
| 12069 | + '\n' |
| 12070 | + ' Alternatively, a workaround for apostrophes can be ' |
| 12071 | + 'constructed\n' |
| 12072 | + ' using regular expressions:\n' |
12068 | 12073 | '\n'
|
12069 | 12074 | ' >>> import re\n'
|
12070 | 12075 | ' >>> def titlecase(s):\n'
|
|
12314 | 12319 | '\n'
|
12315 | 12320 | '1. As in Standard C, up to three octal digits are accepted.\n'
|
12316 | 12321 | '\n'
|
| 12322 | + ' Changed in version 3.11: Octal escapes with value larger than\n' |
| 12323 | + ' "0o377" produce a "DeprecationWarning". In a future Python ' |
| 12324 | + 'version\n' |
| 12325 | + ' they will be a "SyntaxWarning" and eventually a ' |
| 12326 | + '"SyntaxError".\n' |
| 12327 | + '\n' |
12317 | 12328 | '2. Unlike in Standard C, exactly two hex digits are required.\n'
|
12318 | 12329 | '\n'
|
12319 | 12330 | '3. In a bytes literal, hexadecimal and octal escapes denote the '
|
|
13909 | 13920 | 'unwise to use\n'
|
13
7DAC
910 | 13921 | 'them as dictionary keys.)\n'
|
13911 | 13922 | '\n'
|
13912 |
| - 'Dictionaries can be created by placing a comma-separated ' |
13913 |
| - 'list of "key:\n' |
13914 |
| - 'value" pairs within braces, for example: "{\'jack\': 4098, ' |
13915 |
| - "'sjoerd':\n" |
13916 |
| - '4127}" or "{4098: \'jack\', 4127: \'sjoerd\'}", or by the ' |
13917 |
| - '"dict"\n' |
13918 |
| - 'constructor.\n' |
13919 |
| - '\n' |
13920 | 13923 | 'class dict(**kwargs)\n'
|
13921 | 13924 | 'class dict(mapping, **kwargs)\n'
|
13922 | 13925 | 'class dict(iterable, **kwargs)\n'
|
|
0 commit comments