Skip to content

Commit 6cc6b13

Browse files
committed
Python 3.10.7
1 parent e13f49a commit 6cc6b13

23 files changed

+237
-90
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 10
21-
#define PY_MICRO_VERSION 6
21+
#define PY_MICRO_VERSION 7
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.10.6+"
26+
#define PY_VERSION "3.10.7"
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: 29 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Autogenerated by Sphinx on Mon Aug 1 21:23:42 2022
2+
# Autogenerated by Sphinx on Mon Sep 5 13:02:42 2022
33
topics = {'assert': 'The "assert" statement\n'
44
'**********************\n'
55
'\n'
@@ -3429,8 +3429,8 @@
34293429
' there is matched against the whole object rather than an '
34303430
'attribute.\n'
34313431
' For example "int(0|1)" matches the value "0", but not the '
3432-
'values\n'
3433-
' "0.0" or "False".\n'
3432+
'value\n'
3433+
' "0.0".\n'
34343434
'\n'
34353435
'In simple terms "CLS(P1, attr=P2)" matches only if the '
34363436
'following\n'
@@ -8907,31 +8907,7 @@
89078907
' still alive. The list is in definition order. Example:\n'
89088908
'\n'
89098909
' >>> int.__subclasses__()\n'
8910-
" [<class 'bool'>]\n"
8911-
'\n'
8912-
'-[ Footnotes ]-\n'
8913-
'\n'
8914-
'[1] Additional information on these special methods may be '
8915-
'found in\n'
8916-
' the Python Reference Manual (Basic customization).\n'
8917-
'\n'
8918-
'[2] As a consequence, the list "[1, 2]" is considered equal '
8919-
'to "[1.0,\n'
8920-
' 2.0]", and similarly for tuples.\n'
8921-
'\n'
8922-
'[3] They must have since the parser can’t tell the type of '
8923-
'the\n'
8924-
' operands.\n'
8925-
'\n'
8926-
'[4] Cased characters are those with general category '
8927-
'property being\n'
8928-
' one of “Lu” (Letter, uppercase), “Ll” (Letter, '
8929-
'lowercase), or “Lt”\n'
8930-
' (Letter, titlecase).\n'
8931-
'\n'
8932-
'[5] To format only a tuple you should therefore provide a '
8933-
'singleton\n'
8934-
' tuple whose only element is the tuple to be formatted.\n',
8910+
" [<class 'bool'>]\n",
89358911
'specialnames': 'Special method names\n'
89368912
'********************\n'
89378913
'\n'
@@ -12180,8 +12156,8 @@
1218012156
'| Escape Sequence | Meaning | Notes '
1218112157
'|\n'
1218212158
'|===================|===================================|=========|\n'
12183-
'| "\\newline" | Backslash and newline ignored '
12184-
'| |\n'
12159+
'| "\\"<newline> | Backslash and newline ignored | '
12160+
'(1) |\n'
1218512161
'+-------------------+-----------------------------------+---------+\n'
1218612162
'| "\\\\" | Backslash ("\\") '
1218712163
'| |\n'
@@ -12214,10 +12190,10 @@
1221412190
'| |\n'
1221512191
'+-------------------+-----------------------------------+---------+\n'
1221612192
'| "\\ooo" | Character with octal value *ooo* | '
12217-
'(1,3) |\n'
12193+
'(2,4) |\n'
1221812194
'+-------------------+-----------------------------------+---------+\n'
1221912195
'| "\\xhh" | Character with hex value *hh* | '
12220-
'(2,3) |\n'
12196+
'(3,4) |\n'
1222112197
'+-------------------+-----------------------------------+---------+\n'
1222212198
'\n'
1222312199
'Escape sequences only recognized in string literals are:\n'
@@ -12227,39 +12203,51 @@
1222712203
'|\n'
1222812204
'|===================|===================================|=========|\n'
1222912205
'| "\\N{name}" | Character named *name* in the | '
12230-
'(4) |\n'
12206+
'(5) |\n'
1223112207
'| | Unicode database | '
1223212208
'|\n'
1223312209
'+-------------------+-----------------------------------+---------+\n'
1223412210
'| "\\uxxxx" | Character with 16-bit hex value | '
12235-
'(5) |\n'
12211+
'(6) |\n'
1223612212
'| | *xxxx* | '
1223712213
'|\n'
1223812214
'+-------------------+-----------------------------------+---------+\n'
1223912215
'| "\\Uxxxxxxxx" | Character with 32-bit hex value | '
12240-
'(6) |\n'
12216+
'(7) |\n'
1224112217
'| | *xxxxxxxx* | '
1224212218
'|\n'
1224312219
'+-------------------+-----------------------------------+---------+\n'
1224412220
'\n'
1224512221
'Notes:\n'
1224612222
'\n'
12247-
'1. As in Standard C, up to three octal digits are accepted.\n'
12223+
'1. A backslash can be added at the end of a line to ignore the\n'
12224+
' newline:\n'
12225+
'\n'
12226+
" >>> 'This string will not include \\\n"
12227+
" ... backslashes or newline characters.'\n"
12228+
" 'This string will not include backslashes or newline "
12229+
"characters.'\n"
12230+
'\n'
12231+
' The same result can be achieved using triple-quoted strings, '
12232+
'or\n'
12233+
' parentheses and string literal concatenation.\n'
12234+
'\n'
12235+
'2. As in Standard C, up to three octal digits are accepted.\n'
1224812236
'\n'
12249-
'2. Unlike in Standard C, exactly two hex digits are required.\n'
12237+
'3. Unlike in Standard C, exactly two hex digits are required.\n'
1225012238
'\n'
12251-
'3. In a bytes literal, hexadecimal and octal escapes denote the '
12239+
'4. In a bytes literal, hexadecimal and octal escapes denote the '
1225212240
'byte\n'
1225312241
' with the given value. In a string literal, these escapes '
1225412242
'denote a\n'
1225512243
' Unicode character with the given value.\n'
1225612244
'\n'
12257-
'4. Changed in version 3.3: Support for name aliases [1] has been\n'
12245+
'5. Changed in version 3.3: Support for name aliases [1] has been\n'
1225812246
' added.\n'
1225912247
'\n'
12260-
'5. Exactly four hex digits are required.\n'
12248+
'6. Exactly four hex digits are required.\n'
1226112249
'\n'
12262-
'6. Any Unicode character can be encoded this way. Exactly eight '
12250+
'7. Any Unicode character can be encoded this way. Exactly eight '
1226312251
'hex\n'
1226412252
' digits are required.\n'
1226512253
'\n'

Misc/NEWS.d/3.10.7.rst

Lines changed: 205 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,205 @@
1+
.. date: 2022-08-07-16-53-38
2+
.. gh-issue: 95778
3+
.. nonce: ch010gps
4+
.. release date: 2022-09-05
5+
.. section: Security
6+
7+
Converting between :class:`int` and :class:`str` in bases other than 2
8+
(binary), 4, 8 (octal), 16 (hexadecimal), or 32 such as base 10 (decimal)
9+
now raises a :exc:`ValueError` if the number of digits in string form is
10+
above a limit to avoid potential denial of service attacks due to the
11+
algorithmic complexity. This is a mitigation for `CVE-2020-10735
12+
<https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-10735>`_.
13+
14+
This new limit can be configured or disabled by environment variable,
15+
command line flag, or :mod:`sys` APIs. See the :ref:`integer string
16+
conversion length limitation <int_max_str_digits>` documentation. The
17+
default limit is 4300 digits in string form.
18+
19+
Patch by Gregory P. Smith [Google] and Christian Heimes [Red Hat] with
20+
feedback from Victor Stinner, Thomas Wouters, Steve Dower, Ned Deily, and
21+
Mark Dickinson.
22+
23+
..
24+
25+
.. date: 2022-08-22-21-33-28
26+
.. gh-issue: 96187
27+
.. nonce: W_6SRG
28+
.. section: Core and Builtins
29+
30+
Fixed a bug that caused ``_PyCode_GetExtra`` to return garbage for negative
31+
indexes. Patch by Pablo Galindo
32+
33+
..
34+
35+
.. date: 2022-08-11-09-19-55
36+
.. gh-issue: 95876
37+
.. nonce: YpQfoV
38+
.. section: Core and Builtins
39+
40+
Fix format string in ``_PyPegen_raise_error_known_location`` that can lead
41+
to memory corruption on some 64bit systems. The function was building a
42+
tuple with ``i`` (int) instead of ``n`` (Py_ssize_t) for Py_ssize_t
43+
arguments.
44+
45+
..
46+
47+
.. date: 2022-08-04-18-46-54
48+
.. gh-issue: 95605
49+
.. nonce: FbpCoG
50+
.. section: Core and Builtins
51+
52+
Fix misleading contents of error message when converting an all-whitespace
53+
string to :class:`float`.
54+
55+
..
56+
57+
.. date: 2022-07-24-19-23-23
58+
.. gh-issue: 93592
59+
.. nonce: zdgp6o
60+
.. section: Core and Builtins
61+
62+
``coroutine.throw()`` now properly initializes the ``frame.f_back`` when
63+
resuming a stack of coroutines. This allows e.g. ``traceback.print_stack()``
64+
to work correctly when an exception (such as ``CancelledError``) is thrown
65+
into a coroutine.
66+
67+
..
68+
69+
.. date: 2022-07-19-04-34-56
70+
.. gh-issue: 94996
71+
.. nonce: dV564A
72+
.. section: Core and Builtins
73+
74+
:func:`ast.parse` will no longer parse function definitions with
75+
positional-only params when passed ``feature_version`` less than ``(3, 8)``.
76+
Patch by Shantanu Jain.
77+
78+
..
79+
80+
.. date: 2022-09-04-12-32-52
81+
.. gh-issue: 68163
82+
.. nonce: h6TJCc
83+
.. section: Library
84+
85+
Correct conversion of :class:`numbers.Rational`'s to :class:`float`.
86+
87+
..
88+
89+
.. date: 2022-08-22-18-42-17
90+
.. gh-issue: 96159
91+
.. nonce: 3bFU39
92+
.. section: Library
93+
94+
Fix a performance regression in logging TimedRotatingFileHandler. Only check
95+
for special files when the rollover time has passed.
96+
97+
..
98+
99+
.. date: 2022-08-22-13-54-20
100+
.. gh-issue: 96175
101+
.. nonce: bH7zGU
102+
.. section: Library
103+
104+
Fix unused ``localName`` parameter in the ``Attr`` class in
105+
:mod:`xml.dom.minidom`.
106+
107+
..
108+
109+
.. date: 2022-08-03-21-01-17
110+
.. gh-issue: 95609
111+
.. nonce: xxyjyX
112+
.. section: Library
113+
114+
Update bundled pip to 22.2.2.
115+
116+
..
117+
118+
.. date: 2022-07-25-15-45-06
119+
.. gh-issue: 95231
120+
.. nonce: i807-g
121+
.. section: Library
122+
123+
Fail gracefully if :data:`~errno.EPERM` or :data:`~errno.ENOSYS` is raised
124+
when loading :mod:`crypt` methods. This may happen when trying to load
125+
``MD5`` on a Linux kernel with :abbr:`FIPS (Federal Information Processing
126+
Standard)` enabled.
127+
128+
..
129+
130+
.. date: 2022-08-19-17-07-45
131+
.. gh-issue: 96098
132+
.. nonce: nDp43u
133+
.. section: Documentation
134+
135+
Improve discoverability of the higher level concurrent.futures module by
136+
providing clearer links from the lower level threading and multiprocessing
137+
modules.
138+
139+
..
140+
141+
.. date: 2022-08-09-16-11-36
142+
.. gh-issue: 95789
143+
.. nonce: UO7fJL
144+
.. section: Documentation
145+
146+
Update the default RFC base URL from deprecated tools.ietf.org to
147+
datatracker.ietf.org
148+
149+
..
150+
151+
.. date: 2022-08-01-23-17-04
152+
.. gh-issue: 91207
153+
.. nonce: _P8i0B
154+
.. section: Documentation
155+
156+
Fix stylesheet not working in Windows CHM htmlhelp docs. Contributed by
157+
C.A.M. Gerlach.
158+
159+
..
160+
161+
.. bpo: 47115
162+
.. date: 2022-03-30-17-08-12
163+
.. nonce: R3wt3i
164+
.. section: Documentation
165+
166+
The documentation now lists which members of C structs are part of the
167+
:ref:`Limited API/Stable ABI <stable>`.
168+
169+
..
170+
171+
.. date: 2022-08-22-14-59-42
172+
.. gh-issue: 95243
173+
.. nonce: DeD66V
174+
.. section: Tests
175+
176+
Mitigate the inherent race condition from using find_unused_port() in
177+
testSockName() by trying to find an unused port a few times before failing.
178+
Patch by Ross Burton.
179+
180+
..
181+
182+
.. date: 2022-07-08-10-28-23
183+
.. gh-issue: 94682
184+
.. nonce: ZtGt_0
185+
.. section: Build
186+
187+
Build and test with OpenSSL 1.1.1q
188+
189+
..
190+
191+
.. date: 2022-08-04-20-07-51
192+
.. gh-issue: 65802
193+
.. nonce: xnThWe
194+
.. section: IDLE
195+
196+
Document handling of extensions in Save As dialogs.
197+
198+
..
199+
200+
.. date: 2022-08-01-23-31-48
201+
.. gh-issue: 95191
202+
.. nonce: U7vryB
203+
.. section: IDLE
204+
205+
Include prompts when saving Shell (interactive input and output).

Misc/NEWS.d/next/Build/2022-07-08-10-28-23.gh-issue-94682.ZtGt_0.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

Misc/NEWS.d/next/Core and Builtins/2022-07-19-04-34-56.gh-issue-94996.dV564A.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

Misc/NEWS.d/next/Core and Builtins/2022-07-24-19-23-23.gh-issue-93592.zdgp6o.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

Misc/NEWS.d/next/Core and Builtins/2022-08-04-18-46-54.gh-issue-95605.FbpCoG.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

Misc/NEWS.d/next/Core and Builtins/2022-08-11-09-19-55.gh-issue-95876.YpQfoV.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.

Misc/NEWS.d/next/Core and Builtins/2022-08-22-21-33-28.gh-issue-96187.W_6SRG.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

Misc/NEWS.d/next/Documentation/2022-03-30-17-08-12.bpo-47115.R3wt3i.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

Misc/NEWS.d/next/Documentation/2022-08-01-23-17-04.gh-issue-91207._P8i0B.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

Misc/NEWS.d/next/Documentation/2022-08-09-16-11-36.gh-issue-95789.UO7fJL.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

Misc/NEWS.d/next/Documentation/2022-08-19-17-07-45.gh-issue-96098.nDp43u.rst

Lines changed: 0 additions & 3 deletions
This file was deleted.

Misc/NEWS.d/next/IDLE/2022-08-01-23-31-48.gh-issue-95191.U7vryB.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

Misc/NEWS.d/next/IDLE/2022-08-04-20-07-51.gh-issue-65802.xnThWe.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

Misc/NEWS.d/next/Library/2022-07-25-15-45-06.gh-issue-95231.i807-g.rst

Lines changed: 0 additions & 3 deletions
This file was deleted.

Misc/NEWS.d/next/Library/2022-08-03-21-01-17.gh-issue-95609.xxyjyX.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

Misc/NEWS.d/next/Library/2022-08-22-13-54-20.gh-issue-96175.bH7zGU.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)