Skip to content

Commit 3ddfa55

Browse files
committed
Python 3.11.0a6
1 parent 3b3be05 commit 3ddfa55

File tree

122 files changed

+1244
-272
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+1244
-272
lines changed

Include/patchlevel.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
#define PY_MINOR_VERSION 11
2121
#define PY_MICRO_VERSION 0
2222
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_ALPHA
23-
#define PY_RELEASE_SERIAL 5
23+
#define PY_RELEASE_SERIAL 6
2424

2525
/* Version as a string */
26-
#define PY_VERSION "3.11.0a5+"
26+
#define PY_VERSION "3.11.0a6"
2727
/*--end constants--*/
2828

2929
/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.

Lib/pydoc_data/topics.py

+36-22
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- 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
33
topics = {'assert': 'The "assert" statement\n'
44
'**********************\n'
55
'\n'
@@ -2325,15 +2325,18 @@
23252325
'sequence\n'
23262326
'(such as a string, tuple or list) or other iterable object:\n'
23272327
'\n'
2328-
' for_stmt ::= "for" target_list "in" expression_list ":" '
2329-
'suite\n'
2328+
' for_stmt ::= "for" target_list "in" starred_list ":" suite\n'
23302329
' ["else" ":" suite]\n'
23312330
'\n'
23322331
'The expression list is evaluated once; it should yield an '
23332332
'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'
23372340
'provided by the iterator, in the order returned by the '
23382341
'iterator. Each\n'
23392342
'item in turn is assigned to the target list using the standard '
@@ -2382,6 +2385,10 @@
23822385
':= a to b do"; e.g., "list(range(3))" returns the list "[0, 1, '
23832386
'2]".\n'
23842387
'\n'
2388+
'Changed in version 3.11: Starred elements are now allowed in '
2389+
'the\n'
2390+
'expression list.\n'
2391+
'\n'
23852392
'\n'
23862393
'The "try" statement\n'
23872394
'===================\n'
@@ -5891,12 +5898,16 @@
58915898
'sequence\n'
58925899
'(such as a string, tuple or list) or other iterable object:\n'
58935900
'\n'
5894-
' for_stmt ::= "for" target_list "in" expression_list ":" suite\n'
5901+
' for_stmt ::= "for" target_list "in" starred_list ":" suite\n'
58955902
' ["else" ":" suite]\n'
58965903
'\n'
58975904
'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'
59005911
'provided by the iterator, in the order returned by the iterator. '
59015912
'Each\n'
59025913
'item in turn is assigned to the target list using the standard rules\n'
@@ -5933,7 +5944,10 @@
59335944
'all by the loop. Hint: the built-in function "range()" returns an\n'
59345945
'iterator of integers suitable to emulate the effect of Pascal’s "for '
59355946
'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',
59375951
'formatstrings': 'Format String Syntax\n'
59385952
'********************\n'
59395953
'\n'
@@ -6293,19 +6307,19 @@
62936307
'"\'0\'" no\n'
62946308
'longer affects the default alignment for strings.\n'
62956309
'\n'
6296-
'The *precision* is a decimal number indicating how many '
6310+
'The *precision* is a decimal integer indicating how many '
62976311
'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'
63096323
'\n'
63106324
'Finally, the *type* determines how the data should be '
63116325
'presented.\n'

0 commit comments

Comments
 (0)