Skip to content

Commit 3b9d793

Browse files
committed
Python 3.12.0a2
1 parent db11568 commit 3b9d793

File tree

107 files changed

+1134
-293
lines changed

Some content is hidden

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

107 files changed

+1134
-293
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 12
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.12.0a1+"
26+
#define PY_VERSION "3.12.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: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Autogenerated by Sphinx on Tue Oct 25 00:07:40 2022
2+
# Autogenerated by Sphinx on Mon Nov 14 12:13:19 2022
33
topics = {'assert': 'The "assert" statement\n'
44
'**********************\n'
55
'\n'
@@ -358,7 +358,7 @@
358358
'yield_expression)]\n'
359359
'\n'
360360
'The difference from normal Assignment statements is that only '
361-
'single\n'
361+
'a single\n'
362362
'target is allowed.\n'
363363
'\n'
364364
'For simple names as assignment targets, if in class or module '
@@ -408,12 +408,13 @@
408408
'analysis\n'
409409
' tools and IDEs.\n'
410410
'\n'
411-
'Changed in version 3.8: Now annotated assignments allow same\n'
412-
'expressions in the right hand side as the regular '
413-
'assignments.\n'
414-
'Previously, some expressions (like un-parenthesized tuple '
415-
'expressions)\n'
416-
'caused a syntax error.\n',
411+
'Changed in version 3.8: Now annotated assignments allow the '
412+
'same\n'
413+
'expressions in the right hand side as regular assignments. '
414+
'Previously,\n'
415+
'some expressions (like un-parenthesized tuple expressions) '
416+
'caused a\n'
417+
'syntax error.\n',
417418
'async': 'Coroutines\n'
418419
'**********\n'
419420
'\n'
@@ -7320,7 +7321,7 @@
73207321
'the clauses had been separated out into individual import '
73217322
'statements.\n'
73227323
'\n'
7323-
'The details of the first step, finding and loading modules are\n'
7324+
'The details of the first step, finding and loading modules, are\n'
73247325
'described in greater detail in the section on the import system, '
73257326
'which\n'
73267327
'also describes the various types of packages and modules that can '
@@ -11314,6 +11315,10 @@
1131411315
'*start* and\n'
1131511316
' *end* are interpreted as in slice notation.\n'
1131611317
'\n'
11318+
' If *sub* is empty, returns the number of empty strings '
11319+
'between\n'
11320+
' characters which is the length of the string plus one.\n'
11321+
'\n'
1131711322
"str.encode(encoding='utf-8', errors='strict')\n"
1131811323
'\n'
1131911324
' Return an encoded version of the string as a bytes '
@@ -12360,10 +12365,12 @@
1236012365
'2. As in Standard C, up to three octal digits are accepted.\n'
1236112366
'\n'
1236212367
' Changed in version 3.11: Octal escapes with value larger than\n'
12363-
' "0o377" produce a "DeprecationWarning". In a future Python '
12364-
'version\n'
12365-
' they will be a "SyntaxWarning" and eventually a '
12366-
'"SyntaxError".\n'
12368+
' "0o377" produce a "DeprecationWarning".\n'
12369+
'\n'
12370+
' Changed in version 3.12: Octal escapes with value larger than\n'
12371+
' "0o377" produce a "SyntaxWarning". In a future Python version '
12372+
'they\n'
12373+
' will be eventually a "SyntaxError".\n'
1236712374
'\n'
1236812375
'3. Unlike in Standard C, exactly two hex digits are required.\n'
1236912376
'\n'
@@ -12398,9 +12405,13 @@
1239812405
'\n'
1239912406
' Changed in version 3.6: Unrecognized escape sequences produce '
1240012407
'a\n'
12401-
' "DeprecationWarning". In a future Python version they will be '
12408+
' "DeprecationWarning".\n'
12409+
'\n'
12410+
' Changed in version 3.12: Unrecognized escape sequences produce '
1240212411
'a\n'
12403-
' "SyntaxWarning" and eventually a "SyntaxError".\n'
12412+
' "SyntaxWarning". In a future Python version they will be '
12413+
'eventually\n'
12414+
' a "SyntaxError".\n'
1240412415
'\n'
1240512416
'Even in a raw literal, quotes can be escaped with a backslash, '
1240612417
'but the\n'
@@ -13974,17 +13985,11 @@
1397413985
'dictionaries or\n'
1397513986
'other mutable types (that are compared by value rather than '
1397613987
'by object\n'
13977-
'identity) may not be used as keys. Numeric types used for '
13978-
'keys obey\n'
13979-
'the normal rules for numeric comparison: if two numbers '
13980-
'compare equal\n'
13981-
'(such as "1" and "1.0") then they can be used '
13982-
'interchangeably to index\n'
13983-
'the same dictionary entry. (Note however, that since '
13984-
'computers store\n'
13985-
'floating-point numbers as approximations it is usually '
13986-
'unwise to use\n'
13987-
'them as dictionary keys.)\n'
13988+
'identity) may not be used as keys. Values that compare equal '
13989+
'(such as\n'
13990+
'"1", "1.0", and "True") can be used interchangeably to index '
13991+
'the same\n'
13992+
'dictionary entry.\n'
1398813993
'\n'
1398913994
'class dict(**kwargs)\n'
1399013995
'class dict(mapping, **kwargs)\n'

0 commit comments

Comments
 (0)