|
1 | 1 | # -*- coding: utf-8 -*-
|
2 |
| -# Autogenerated by Sphinx on Thu Feb 3 18:35:23 2022 |
| 2 | +# Autogenerated by Sphinx on Mon Mar 7 12:29:42 2022 |
3 | 3 | topics = {'assert': 'The "assert" statement\n'
|
4 | 4 | '**********************\n'
|
5 | 5 | '\n'
|
|
2325 | 2325 | 'sequence\n'
|
2326 | 2326 | '(such as a string, tuple or list) or other iterable object:\n'
|
2327 | 2327 | '\n'
|
2328 |
| - ' for_stmt ::= "for" target_list "in" expression_list ":" ' |
2329 |
| - 'suite\n' |
| 2328 | + ' for_stmt ::= "for" target_list "in" starred_list ":" suite\n' |
2330 | 2329 | ' ["else" ":" suite]\n'
|
2331 | 2330 | '\n'
|
2332 | 2331 | 'The expression list is evaluated once; it should yield an '
|
2333 | 2332 | 'iterable\n'
|
2334 |
| - 'object. An iterator is created for the result of the\n' |
2335 |
| - '"expression_list". The suite is then executed once for each ' |
2336 |
| - 'item\n' |
| 2333 | + 'object. An iterator is created for the result of the ' |
| 2334 | + '"starred_list".\n' |
| 2335 | + 'The expression list can contain starred elements ("*x, *y") that ' |
| 2336 | + 'will\n' |
| 2337 | + 'be unpacked in the final iterator (as when constructing a ' |
| 2338 | + '"tuple" or\n' |
| 2339 | + '"list" literal). The suite is then executed once for each item\n' |
2337 | 2340 | 'provided by the iterator, in the order returned by the '
|
2338 | 2341 | 'iterator. Each\n'
|
2339 | 2342 | 'item in turn is assigned to the target list using the standard '
|
|
2382 | 2385 | ':= a to b do"; e.g., "list(range(3))" returns the list "[0, 1, '
|
2383 | 2386 | '2]".\n'
|
2384 | 2387 | '\n'
|
| 2388 | + 'Changed in version 3.11: Starred elements are now allowed in ' |
| 2389 | + 'the\n' |
| 2390 | + 'expression list.\n' |
| 2391 | + '\n' |
2385 | 2392 | '\n'
|
2386 | 2393 | 'The "try" statement\n'
|
2387 | 2394 | '===================\n'
|
|
5891 | 5898 | 'sequence\n'
|
5892 | 5899 | '(such as a string, tuple or list) or other iterable object:\n'
|
5893 | 5900 | '\n'
|
5894 |
| - ' for_stmt ::= "for" target_list "in" expression_list ":" suite\n' |
| 5901 | + ' for_stmt ::= "for" target_list "in" starred_list ":" suite\n' |
5895 | 5902 | ' ["else" ":" suite]\n'
|
5896 | 5903 | '\n'
|
5897 | 5904 | 'The expression list is evaluated once; it should yield an iterable\n'
|
5898 |
| - 'object. An iterator is created for the result of the\n' |
5899 |
| - '"expression_list". The suite is then executed once for each item\n' |
| 5905 | + 'object. An iterator is created for the result of the ' |
| 5906 | + '"starred_list".\n' |
| 5907 | + 'The expression list can contain starred elements ("*x, *y") that ' |
| 5908 | + 'will\n' |
| 5909 | + 'be unpacked in the final iterator (as when constructing a "tuple" or\n' |
| 5910 | + '"list" literal). The suite is then executed once for each item\n' |
5900 | 5911 | 'provided by the iterator, in the order returned by the iterator. '
|
5901 | 5912 | 'Each\n'
|
5902 | 5913 | 'item in turn is assigned to the target list using the standard rules\n'
|
|
5933 | 5944 | 'all by the loop. Hint: the built-in function "range()" returns an\n'
|
5934 | 5945 | 'iterator of integers suitable to emulate the effect of Pascal’s "for '
|
5935 | 5946 | 'i\n'
|
5936 |
| - ':= a to b do"; e.g., "list(range(3))" returns the list "[0, 1, 2]".\n', |
| 5947 | + ':= a to b do"; e.g., "list(range(3))" returns the list "[0, 1, 2]".\n' |
| 5948 | + '\n' |
| 5949 | + 'Changed in version 3.11: Starred elements are now allowed in the\n' |
| 5950 | + 'expression list.\n', |
5937 | 5951 | 'formatstrings': 'Format String Syntax\n'
|
5938 | 5952 | '********************\n'
|
5939 | 5953 | '\n'
|
|
6293 | 6307 | '"\'0\'" no\n'
|
6294 | 6308 | 'longer affects the default alignment for strings.\n'
|
6295 | 6309 | '\n'
|
6296 |
| - 'The *precision* is a decimal number indicating how many ' |
| 6310 | + 'The *precision* is a decimal integer indicating how many ' |
6297 | 6311 | 'digits should\n'
|
6298 |
| - 'be displayed after the decimal point for a floating point ' |
6299 |
| - 'value\n' |
6300 |
| - 'formatted with "\'f\'" and "\'F\'", or before and after the ' |
6301 |
| - 'decimal point\n' |
6302 |
| - 'for a floating point value formatted with "\'g\'" or ' |
6303 |
| - '"\'G\'". For non-\n' |
6304 |
| - 'number types the field indicates the maximum field size - ' |
6305 |
| - 'in other\n' |
6306 |
| - 'words, how many characters will be used from the field ' |
6307 |
| - 'content. The\n' |
6308 |
| - '*precision* is not allowed for integer values.\n' |
| 6312 | + 'be displayed after the decimal point for presentation types ' |
| 6313 | + '"\'f\'" and\n' |
| 6314 | + '"\'F\'", or before and after the decimal point for ' |
| 6315 | + 'presentation types\n' |
| 6316 | + '"\'g\'" or "\'G\'". For string presentation types the ' |
| 6317 | + 'field indicates the\n' |
| 6318 | + 'maximum field size - in other words, how many characters ' |
| 6319 | + 'will be used\n' |
| 6320 | + 'from the field content. The *precision* is not allowed for ' |
| 6321 | + 'integer\n' |
| 6322 | + 'presentation types.\n' |
6309 | 6323 | '\n'
|
6310 | 6324 | 'Finally, the *type* determines how the data should be '
|
6311 | 6325 | 'presented.\n'
|
|
0 commit comments