8000 Python 3.10.10 · python/cpython@aad5f6a · GitHub
[go: up one dir, main page]

Skip to content

Commit aad5f6a

Browse files
committed
Python 3.10.10
1 parent 25196d6 commit aad5f6a

File tree

43 files changed

+450
-111
lines changed

Some content is hidden

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

43 files changed

+450
-111
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 9
21+
#define PY_MICRO_VERSION 10
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.9+"
26+
#define PY_VERSION "3.10.10"
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: 47 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Autogenerated by Sphinx on Tue Dec 6 18:31:02 2022
2+
# Autogenerated by Sphinx on Tue Feb 7 12:04:02 2023
33
topics = {'assert': 'The "assert" statement\n'
44
'**********************\n'
55
'\n'
@@ -2391,12 +2391,10 @@
23912391
'finished,\n'
23922392
'but if the sequence is empty, they will not have been assigned '
23932393
'to at\n'
2394-
'all by the loop. Hint: the built-in function "range()" returns '
2395-
'an\n'
2396-
'iterator of integers suitable to emulate the effect of Pascal’s '
2397-
'"for i\n'
2398-
':= a to b do"; e.g., "list(range(3))" returns the list "[0, 1, '
2399-
'2]".\n'
2394+
'all by the loop. Hint: the built-in type "range()" represents\n'
2395+
'immutable arithmetic sequences of integers. For instance, '
2396+
'iterating\n'
2397+
'"range(3)" successively yields 0, 1, and then 2.\n'
24002398
'\n'
24012399
'\n'
24022400
'The "try" statement\n'
@@ -2644,7 +2642,7 @@
26442642
'the\n'
26452643
' target list, it will be treated the same as an error '
26462644
'occurring\n'
2647-
' within the suite would be. See step 6 below.\n'
2645+
' within the suite would be. See step 7 below.\n'
26482646
'\n'
26492647
'6. The suite is executed.\n'
26502648
'\n'
@@ -4567,6 +4565,18 @@
45674565
'the source. The extension interface uses the modules "bdb" and '
45684566
'"cmd".\n'
45694567
'\n'
4568+
'See also:\n'
4569+
'\n'
4570+
' Module "faulthandler"\n'
4571+
' Used to dump Python tracebacks explicitly, on a fault, '
4572+
'after a\n'
4573+
' timeout, or on a user signal.\n'
4574+
'\n'
4575+
' Module "traceback"\n'
4576+
' Standard interface to extract, format and print stack '
4577+
'traces of\n'
4578+
' Python programs.\n'
4579+
'\n'
45704580
'The debugger’s prompt is "(Pdb)". Typical usage to run a program '
45714581
'under\n'
45724582
'control of the debugger is:\n'
@@ -5580,7 +5590,8 @@
55805590
'be\n'
55815591
'determined by scanning the entire text of the block for name '
55825592
'binding\n'
5583-
'operations.\n'
5593+
'operations. See the FAQ entry on UnboundLocalError for '
5594+
'examples.\n'
55845595
'\n'
55855596
'If the "global" statement occurs within a block, all uses of '
55865597
'the names\n'
@@ -5888,10 +5899,9 @@
58885899
'\n'
58895900
'Names in the target list are not deleted when the loop is finished,\n'
58905901
'but if the sequence is empty, they will not have been assigned to at\n'
5891-
'all by the loop. Hint: the built-in function "range()" returns an\n'
5892-
'iterator of integers suitable to emulate the effect of Pascal’s "for '
5893-
'i\n'
5894-
':= a to b do"; e.g., "list(range(3))" returns the list "[0, 1, 2]".\n',
5902+
'all by the loop. Hint: the built-in type "range()" represents\n'
5903+
'immutable arithmetic sequences of integers. For instance, iterating\n'
5904+
'"range(3)&q 10000 uot; successively yields 0, 1, and then 2.\n',
58955905
'formatstrings': 'Format String Syntax\n'
58965906
'********************\n'
58975907
'\n'
@@ -7687,7 +7697,7 @@
76877697
'within a code block. The local variables of a code block can be\n'
76887698
'determined by scanning the entire text of the block for name '
76897699
'binding\n'
7690-
'operations.\n'
7700+
'operations. See the FAQ entry on UnboundLocalError for examples.\n'
76917701
'\n'
76927702
'If the "global" statement occurs within a block, all uses of the '
76937703
'names\n'
@@ -11213,35 +11223,35 @@
1121311223
'\n'
1121411224
"str.encode(encoding='utf-8', errors='strict')\n"
1121511225
'\n'
11216-
' Return an encoded version of the string as a bytes '
11217-
'object. Default\n'
11218-
' encoding is "\'utf-8\'". *errors* may be given to set a '
11219-
'different\n'
11220-
' error handling scheme. The default for *errors* is '
11221-
'"\'strict\'",\n'
11222-
' meaning that encoding errors raise a "UnicodeError". '
11226+
' Return the string encoded to "bytes".\n'
11227+
'\n'
11228+
' *encoding* defaults to "\'utf-8\'"; see Standard '
11229+
'Encodings for\n'
11230+
' possible values.\n'
11231+
'\n'
11232+
' *errors* controls how encoding errors are handled. If '
11233+
'"\'strict\'"\n'
11234+
' (the default), a "UnicodeError" exception is raised. '
1122311235
'Other possible\n'
1122411236
' values are "\'ignore\'", "\'replace\'", '
1122511237
'"\'xmlcharrefreplace\'",\n'
1122611238
' "\'backslashreplace\'" and any other name registered '
1122711239
'via\n'
11228-
' "codecs.register_error()", see section Error Handlers. '
11229-
'For a list\n'
11230-
' of possible encodings, see section Standard Encodings.\n'
11240+
' "codecs.register_error()". See Error Handlers for '
11241+
'details.\n'
1123111242
'\n'
11232-
' By default, the *errors* argument is not checked for '
11233-
'best\n'
11234-
' performances, but only used at the first encoding '
11235-
'error. Enable the\n'
11236-
' Python Development Mode, or use a debug build to check '
11237-
'*errors*.\n'
11243+
' For performance reasons, the value of *errors* is not '
11244+
'checked for\n'
11245+
' validity unless an encoding error actually occurs, '
11246+
'Python\n'
11247+
' Development Mode is enabled or a debug build is used.\n'
1123811248
'\n'
11239-
' Changed in version 3.1: Support for keyword arguments '
11240-
'added.\n'
11249+
' Changed in version 3.1: Added support for keyword '
11250+
'arguments.\n'
1124111251
'\n'
11242-
' Changed in version 3.9: The *errors* is now checked in '
11243-
'development\n'
11244-
' mode and in debug mode.\n'
11252+
' Changed in version 3.9: The value of the *errors* '
11253+
'argument is now\n'
11254+
' checked in Python Development Mode and in debug mode.\n'
1124511255
'\n'
1124611256
'str.endswith(suffix[, start[, end]])\n'
1124711257
'\n'
@@ -14199,8 +14209,7 @@
1419914209
' >>> # get back a read-only proxy for the original '
1420014210
'dictionary\n'
1420114211
' >>> values.mapping\n'
14202-
" mappingproxy({'eggs': 2, 'sausage': 1, 'bacon': 1, "
14203-
"'spam': 500})\n"
14212+
" mappingproxy({'bacon': 1, 'spam': 500})\n"
1420414213
" >>> values.mapping['spam']\n"
1420514214
' 500\n',
1420614215
'typesmethods': 'Methods\n'
@@ -15246,7 +15255,7 @@
1524615255
' returns without an error, then "__exit__()" will always be\n'
1524715256
' called. Thus, if an error occurs during the assignment to the\n'
1524815257
' target list, it will be treated the same as an error occurring\n'
15249-
' within the suite would be. See step 6 below.\n'
15258+
' within the suite would be. See step 7 below.\n'
1525015259
'\n'
1525115260
'6. The suite is executed.\n'
1525215261
'\n'

0 commit comments

Comments
 (0)
0