Skip to content

Commit 0b8c3f1

Browse files
committed
Merge tag 'v3.11.0a2'
Python 3.11.0a2
2 parents 9b0f45c + e2b4e4b commit 0b8c3f1

File tree

128 files changed

+1396
-372
lines changed

Some content is hidden

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

128 files changed

+1396
-372
lines changed

Include/patchlevel.h

Lines changed: 2 additions & 2 deletions
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 1
23+
#define PY_RELEASE_SERIAL 2
2424

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

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

Lib/pydoc_data/topics.py

Lines changed: 59 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Autogenerated by Sphinx on Tue Oct 5 13:43:52 2021
2+
# Autogenerated by Sphinx on Fri Nov 5 19:03:45 2021
33
topics = {'assert': 'The "assert" statement\n'
44
'**********************\n'
55
'\n'
@@ -3339,9 +3339,9 @@
33393339
'\n'
33403340
'The same keyword should not be repeated in class patterns.\n'
33413341
'\n'
3342-
'The following is the logical flow for matching a mapping '
3343-
'pattern\n'
3344-
'against a subject value:\n'
3342+
'The following is the logical flow for matching a class pattern '
3343+
'against\n'
3344+
'a subject value:\n'
33453345
'\n'
33463346
'1. If "name_or_attr" is not an instance of the builtin "type" , '
33473347
'raise\n'
@@ -5579,9 +5579,9 @@
55795579
'operations.\n'
55805580
'\n'
55815581
'If the "global" statement occurs within a block, all uses of '
5582-
'the name\n'
5583-
'specified in the statement refer to the binding of that name in '
5584-
'the\n'
5582+
'the names\n'
5583+
'specified in the statement refer to the bindings of those names '
5584+
'in the\n'
55855585
'top-level namespace. Names are resolved in the top-level '
55865586
'namespace by\n'
55875587
'searching the global namespace, i.e. the namespace of the '
@@ -5590,9 +5590,10 @@
55905590
'namespace\n'
55915591
'of the module "builtins". The global namespace is searched '
55925592
'first. If\n'
5593-
'the name is not found there, the builtins namespace is '
5594-
'searched. The\n'
5595-
'"global" statement must precede all uses of the name.\n'
5593+
'the names are not found there, the builtins namespace is '
5594+
'searched.\n'
5595+
'The "global" statement must precede all uses of the listed '
5596+
'names.\n'
55965597
'\n'
55975598
'The "global" statement has the same scope as a name binding '
55985599
'operation\n'
@@ -6948,22 +6949,31 @@
69486949
'trailing underscore characters:\n'
69496950
'\n'
69506951
'"_*"\n'
6951-
' Not imported by "from module import *". The special '
6952-
'identifier "_"\n'
6953-
' is used in the interactive interpreter to store the result '
6954-
'of the\n'
6955-
' last evaluation; it is stored in the "builtins" module. '
6956-
'When not\n'
6957-
' in interactive mode, "_" has no special meaning and is not '
6958-
'defined.\n'
6959-
' See section The import statement.\n'
6952+
' Not imported by "from module import *".\n'
6953+
'\n'
6954+
'"_"\n'
6955+
' In a "case" pattern within a "match" statement, "_" is a '
6956+
'soft\n'
6957+
' keyword that denotes a wildcard.\n'
6958+
'\n'
6959+
' Separately, the interactive interpreter makes the result of '
6960+
'the\n'
6961+
' last evaluation available in the variable "_". (It is '
6962+
'stored in the\n'
6963+
' "builtins" module, alongside built-in functions like '
6964+
'"print".)\n'
6965+
'\n'
6966+
' Elsewhere, "_" is a regular identifier. It is often used to '
6967+
'name\n'
6968+
' “special” items, but it is not special to Python itself.\n'
69606969
'\n'
69616970
' Note:\n'
69626971
'\n'
69636972
' The name "_" is often used in conjunction with\n'
69646973
' internationalization; refer to the documentation for the\n'
69656974
' "gettext" module for more information on this '
6966-
'convention.\n'
6975+
'convention.It is\n'
6976+
' also commonly used for unused variables.\n'
69676977
'\n'
69686978
'"__*__"\n'
69696979
' System-defined names, informally known as “dunder” names. '
@@ -7118,23 +7128,32 @@
71187128
'trailing underscore characters:\n'
71197129
'\n'
71207130
'"_*"\n'
7121-
' Not imported by "from module import *". The special '
7122-
'identifier "_"\n'
7123-
' is used in the interactive interpreter to store the result '
7131+
' Not imported by "from module import *".\n'
7132+
'\n'
7133+
'"_"\n'
7134+
' In a "case" pattern within a "match" statement, "_" is a '
7135+
'soft\n'
7136+
' keyword that denotes a wildcard.\n'
7137+
'\n'
7138+
' Separately, the interactive interpreter makes the result '
71247139
'of the\n'
7125-
' last evaluation; it is stored in the "builtins" module. '
7126-
'When not\n'
7127-
' in interactive mode, "_" has no special meaning and is not '
7128-
'defined.\n'
7129-
' See section The import statement.\n'
7140+
' last evaluation available in the variable "_". (It is '
7141+
'stored in the\n'
7142+
' "builtins" module, alongside built-in functions like '
7143+
'"print".)\n'
7144+
'\n'
7145+
' Elsewhere, "_" is a regular identifier. It is often used '
7146+
'to name\n'
7147+
' “special” items, but it is not special to Python itself.\n'
71307148
'\n'
71317149
' Note:\n'
71327150
'\n'
71337151
' The name "_" is often used in conjunction with\n'
71347152
' internationalization; refer to the documentation for '
71357153
'the\n'
71367154
' "gettext" module for more information on this '
7137-
'convention.\n'
7155+
'convention.It is\n'
7156+
' also commonly used for unused variables.\n'
71387157
'\n'
71397158
'"__*__"\n'
71407159
' System-defined names, informally known as “dunder” names. '
@@ -7678,8 +7697,8 @@
76787697
'operations.\n'
76797698
'\n'
76807699
'If the "global" statement occurs within a block, all uses of the '
7681-
'name\n'
7682-
'specified in the statement refer to the binding of that name in '
7700+
'names\n'
7701+
'specified in the statement refer to the bindings of those names in '
76837702
'the\n'
76847703
'top-level namespace. Names are resolved in the top-level '
76857704
'namespace by\n'
@@ -7688,9 +7707,9 @@
76887707
'namespace\n'
76897708
'of the module "builtins". The global namespace is searched '
76907709
'first. If\n'
7691-
'the name is not found there, the builtins namespace is searched. '
7692-
'The\n'
7693-
'"global" statement must precede all uses of the name.\n'
7710+
'the names are not found there, the builtins namespace is '
7711+
'searched.\n'
7712+
'The "global" statement must precede all uses of the listed names.\n'
76947713
'\n'
76957714
'The "global" statement has the same scope as a name binding '
76967715
'operation\n'
@@ -8025,9 +8044,9 @@
80258044
' of the object truncated to an "Integral" (typically an '
80268045
'"int").\n'
80278046
'\n'
8028-
' If "__int__()" is not defined then the built-in function '
8029-
'"int()"\n'
8030-
' falls back to "__trunc__()".\n',
8047+
' The built-in function "int()" falls back to '
8048+
'"__trunc__()" if\n'
8049+
' neither "__int__()" nor "__index__()" is defined.\n',
80318050
'objects': 'Objects, values and types\n'
80328051
'*************************\n'
80338052
'\n'
@@ -10765,9 +10784,9 @@
1076510784
' of the object truncated to an "Integral" (typically an '
1076610785
'"int").\n'
1076710786
'\n'
10768-
' If "__int__()" is not defined then the built-in function '
10769-
'"int()"\n'
10770-
' falls back to "__trunc__()".\n'
10787+
' The built-in function "int()" falls back to "__trunc__()" '
10788+
'if\n'
10789+
' neither "__int__()" nor "__index__()" is defined.\n'
1077110790
'\n'
1077210791
'\n'
1077310792
'With Statement Context Managers\n'

0 commit comments

Comments
 (0)