diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/pydoc_data/topics.py | 58 |
1 files changed, 36 insertions, 22 deletions
diff --git a/Lib/pydoc_data/topics.py b/Lib/pydoc_data/topics.py index cd47603..433c905 100644 --- a/Lib/pydoc_data/topics.py +++ b/Lib/pydoc_data/topics.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Autogenerated by Sphinx on Thu Feb 3 18:35:23 2022 +# Autogenerated by Sphinx on Mon Mar 7 12:29:42 2022 topics = {'assert': 'The "assert" statement\n' '**********************\n' '\n' @@ -2325,15 +2325,18 @@ topics = {'assert': 'The "assert" statement\n' 'sequence\n' '(such as a string, tuple or list) or other iterable object:\n' '\n' - ' for_stmt ::= "for" target_list "in" expression_list ":" ' - 'suite\n' + ' for_stmt ::= "for" target_list "in" starred_list ":" suite\n' ' ["else" ":" suite]\n' '\n' 'The expression list is evaluated once; it should yield an ' 'iterable\n' - 'object. An iterator is created for the result of the\n' - '"expression_list". The suite is then executed once for each ' - 'item\n' + 'object. An iterator is created for the result of the ' + '"starred_list".\n' + 'The expression list can contain starred elements ("*x, *y") that ' + 'will\n' + 'be unpacked in the final iterator (as when constructing a ' + '"tuple" or\n' + '"list" literal). The suite is then executed once for each item\n' 'provided by the iterator, in the order returned by the ' 'iterator. Each\n' 'item in turn is assigned to the target list using the standard ' @@ -2382,6 +2385,10 @@ topics = {'assert': 'The "assert" statement\n' ':= a to b do"; e.g., "list(range(3))" returns the list "[0, 1, ' '2]".\n' '\n' + 'Changed in version 3.11: Starred elements are now allowed in ' + 'the\n' + 'expression list.\n' + '\n' '\n' 'The "try" statement\n' '===================\n' @@ -5891,12 +5898,16 @@ topics = {'assert': 'The "assert" statement\n' 'sequence\n' '(such as a string, tuple or list) or other iterable object:\n' '\n' - ' for_stmt ::= "for" target_list "in" expression_list ":" suite\n' + ' for_stmt ::= "for" target_list "in" starred_list ":" suite\n' ' ["else" ":" suite]\n' '\n' 'The expression list is evaluated once; it should yield an iterable\n' - 'object. An iterator is created for the result of the\n' - '"expression_list". The suite is then executed once for each item\n' + 'object. An iterator is created for the result of the ' + '"starred_list".\n' + 'The expression list can contain starred elements ("*x, *y") that ' + 'will\n' + 'be unpacked in the final iterator (as when constructing a "tuple" or\n' + '"list" literal). The suite is then executed once for each item\n' 'provided by the iterator, in the order returned by the iterator. ' 'Each\n' 'item in turn is assigned to the target list using the standard rules\n' @@ -5933,7 +5944,10 @@ topics = {'assert': 'The "assert" statement\n' 'all by the loop. Hint: the built-in function "range()" returns an\n' 'iterator of integers suitable to emulate the effect of Pascal’s "for ' 'i\n' - ':= a to b do"; e.g., "list(range(3))" returns the list "[0, 1, 2]".\n', + ':= a to b do"; e.g., "list(range(3))" returns the list "[0, 1, 2]".\n' + '\n' + 'Changed in version 3.11: Starred elements are now allowed in the\n' + 'expression list.\n', 'formatstrings': 'Format String Syntax\n' '********************\n' '\n' @@ -6293,19 +6307,19 @@ topics = {'assert': 'The "assert" statement\n' '"\'0\'" no\n' 'longer affects the default alignment for strings.\n' '\n' - 'The *precision* is a decimal number indicating how many ' + 'The *precision* is a decimal integer indicating how many ' 'digits should\n' - 'be displayed after the decimal point for a floating point ' - 'value\n' - 'formatted with "\'f\'" and "\'F\'", or before and after the ' - 'decimal point\n' - 'for a floating point value formatted with "\'g\'" or ' - '"\'G\'". For non-\n' - 'number types the field indicates the maximum field size - ' - 'in other\n' - 'words, how many characters will be used from the field ' - 'content. The\n' - '*precision* is not allowed for integer values.\n' + 'be displayed after the decimal point for presentation types ' + '"\'f\'" and\n' + '"\'F\'", or before and after the decimal point for ' + 'presentation types\n' + '"\'g\'" or "\'G\'". For string presentation types the ' + 'field indicates the\n' + 'maximum field size - in other words, how many characters ' + 'will be used\n' + 'from the field content. The *precision* is not allowed for ' + 'integer\n' + 'presentation types.\n' '\n' 'Finally, the *type* determines how the data should be ' 'presented.\n' |