Skip to content

Commit a4a2d2b

Browse files
committed
Python 3.12.6
1 parent 7e51091 commit a4a2d2b

File tree

37 files changed

+367
-95
lines changed

37 files changed

+367
-95
lines changed

Include/patchlevel.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
/*--start constants--*/
1919
#define PY_MAJOR_VERSION 3
2020
#define PY_MINOR_VERSION 12
21-
#define PY_MICRO_VERSION 5
21+
#define PY_MICRO_VERSION 6
2222
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL
2323
#define PY_RELEASE_SERIAL 0
2424

2525
/* Version as a string */
26-
#define PY_VERSION "3.12.5+"
26+
#define PY_VERSION "3.12.6"
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: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Autogenerated by Sphinx on Tue Aug 6 21:02:50 2024
2+
# Autogenerated by Sphinx on Fri Sep 6 21:00:45 2024
33
# as part of the release process.
44
topics = {'assert': 'The "assert" statement\n'
55
'**********************\n'
@@ -3101,7 +3101,7 @@
31013101
' | "None"\n'
31023102
' | "True"\n'
31033103
' | "False"\n'
3104-
' | signed_number: NUMBER | "-" NUMBER\n'
3104+
' signed_number ::= ["-"] NUMBER\n'
31053105
'\n'
31063106
'The rule "strings" and the token "NUMBER" are defined in the '
31073107
'standard\n'
@@ -8991,16 +8991,22 @@
89918991
'types, operations that compute new values may actually return a\n'
89928992
'reference to any existing object with the same type and value, '
89938993
'while\n'
8994-
'for mutable objects this is not allowed. E.g., after "a = 1; b = '
8995-
'1",\n'
8996-
'"a" and "b" may or may not refer to the same object with the '
8997-
'value\n'
8998-
'one, depending on the implementation, but after "c = []; d = []", '
8999-
'"c"\n'
9000-
'and "d" are guaranteed to refer to two different, unique, newly\n'
9001-
'created empty lists. (Note that "c = d = []" assigns the same '
9002-
'object\n'
9003-
'to both "c" and "d".)\n',
8994+
'for mutable objects this is not allowed. For example, after "a = '
8995+
'1; b\n'
8996+
'= 1", *a* and *b* may or may not refer to the same object with '
8997+
'the\n'
8998+
'value one, depending on the implementation. This is because "int" '
8999+
'is\n'
9000+
'an immutable type, so the reference to "1" can be reused. This\n'
9001+
'behaviour depends on the implementation used, so should not be '
9002+
'relied\n'
9003+
'upon, but is something to be aware of when making use of object\n'
9004+
'identity tests. However, after "c = []; d = []", *c* and *d* are\n'
9005+
'guaranteed to refer to two different, unique, newly created '
9006+
'empty\n'
9007+
'lists. (Note that "e = f = []" assigns the *same* object to both '
9008+
'*e*\n'
9009+
'and *f*.)\n',
90049010
'operator-summary': 'Operator precedence\n'
90059011
'*******************\n'
90069012
'\n'
@@ -13075,15 +13081,13 @@
1307513081
'greater must be expressed with escapes.\n'
1307613082
'\n'
1307713083
'Both string and bytes literals may optionally be prefixed with a\n'
13078-
'letter "\'r\'" or "\'R\'"; such strings are called *raw strings* '
13079-
'and treat\n'
13080-
'backslashes as literal characters. As a result, in string '
13081-
'literals,\n'
13082-
'"\'\\U\'" and "\'\\u\'" escapes in raw strings are not treated '
13083-
'specially.\n'
13084-
'Given that Python 2.x’s raw unicode literals behave differently '
13085-
'than\n'
13086-
'Python 3.x’s the "\'ur\'" syntax is not supported.\n'
13084+
'letter "\'r\'" or "\'R\'"; such constructs are called *raw '
13085+
'string\n'
13086+
'literals* and *raw bytes literals* respectively and treat '
13087+
'backslashes\n'
13088+
'as literal characters. As a result, in raw string literals, '
13089+
'"\'\\U\'"\n'
13090+
'and "\'\\u\'" escapes are not treated specially.\n'
1308713091
'\n'
1308813092
'Added in version 3.3: The "\'rb\'" prefix of raw bytes literals '
1308913093
'has been\n'
@@ -13977,8 +13981,7 @@
1397713981
'however removing a key and re-inserting it will add it to the end\n'
1397813982
'instead of keeping its old place.\n'
1397913983
'\n'
13980-
'Dictionaries are mutable; they can be created by the "{...}" '
13981-
'notation\n'
13984+
'Dictionaries are mutable; they can be created by the "{}" notation\n'
1398213985
'(see section Dictionary displays).\n'
1398313986
'\n'
1398413987
'The extension modules "dbm.ndbm" and "dbm.gnu" provide additional\n'
@@ -15963,8 +15966,8 @@
1596315966
'| | also removes it from '
1596415967
'*s* | |\n'
1596515968
'+--------------------------------+----------------------------------+-----------------------+\n'
15966-
'| "s.remove(x)" | remove the first item from '
15967-
'*s* | (3) |\n'
15969+
'| "s.remove(x)" | removes the first item from '
15970+
'*s* | (3) |\n'
1596815971
'| | where "s[i]" is equal to '
1596915972
'*x* | |\n'
1597015973
'+--------------------------------+----------------------------------+-----------------------+\n'
@@ -16428,8 +16431,8 @@
1642816431
'| | also removes it from '
1642916432
'*s* | |\n'
1643016433
'+--------------------------------+----------------------------------+-----------------------+\n'
16431-
'| "s.remove(x)" | remove the first item '
16432-
'from *s* | (3) |\n'
16434+
'| "s.remove(x)" | removes the first '
16435+
'item from *s* | (3) |\n'
1643316436
'| | where "s[i]" is equal '
1643416437
'to *x* | |\n'
1643516438
'+--------------------------------+----------------------------------+-----------------------+\n'

0 commit comments

Comments
 (0)