Skip to content

Commit 3d5d3f7

Browse files
committed
Python 3.12.0a4
1 parent f07daaf commit 3d5d3f7

File tree

114 files changed

+1172
-263
lines changed

Some content is hidden

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

114 files changed

+1172
-263
lines changed

Include/patchlevel.h

+2-2
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 3
23+
#define PY_RELEASE_SERIAL 4
2424

2525
/* Version as a string */
26-
#define PY_VERSION "3.12.0a3+"
26+
#define PY_VERSION "3.12.0a4"
2727
/*--end constants--*/
2828

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

Lib/pydoc_data/topics.py

+37-38
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Autogenerated by Sphinx on Tue Dec 6 19:31:49 2022
2+
# Autogenerated by Sphinx on Tue Jan 10 13:08:32 2023
33
topics = {'assert': 'The "assert" statement\n'
44
'**********************\n'
55
'\n'
@@ -2382,12 +2382,10 @@
23822382
'finished,\n'
23832383
'but if the sequence is empty, they will not have been assigned '
23842384
'to at\n'
2385-
'all by the loop. Hint: the built-in function "range()" returns '
2386-
'an\n'
2387-
'iterator of integers suitable to emulate the effect of Pascal’s '
2388-
'"for i\n'
2389-
':= a to b do"; e.g., "list(range(3))" returns the list "[0, 1, '
2390-
'2]".\n'
2385+
'all by the loop. Hint: the built-in type "range()" represents\n'
2386+
'immutable arithmetic sequences of integers. For instance, '
2387+
'iterating\n'
2388+
'"range(3)" successively yields 0, 1, and then 2.\n'
23912389
'\n'
23922390
'Changed in version 3.11: Starred elements are now allowed in '
23932391
'the\n'
@@ -2726,7 +2724,7 @@
27262724
'the\n'
27272725
' target list, it will be treated the same as an error '
27282726
'occurring\n'
2729-
' within the suite would be. See step 6 below.\n'
2727+
' within the suite would be. See step 7 below.\n'
27302728
'\n'
27312729
'6. The suite is executed.\n'
27322730
'\n'
@@ -5668,7 +5666,8 @@
56685666
'be\n'
56695667
'determined by scanning the entire text of the block for name '
56705668
'binding\n'
5671-
'operations.\n'
5669+
'operations. See the FAQ entry on UnboundLocalError for '
5670+
'examples.\n'
56725671
'\n'
56735672
'If the "global" statement occurs within a block, all uses of '
56745673
'the names\n'
@@ -5970,10 +5969,9 @@
59705969
'\n'
59715970
'Names in the target list are not deleted when the loop is finished,\n'
59725971
'but if the sequence is empty, they will not have been assigned to at\n'
5973-
'all by the loop. Hint: the built-in function "range()" returns an\n'
5974-
'iterator of integers suitable to emulate the effect of Pascal’s "for '
5975-
'i\n'
5976-
':= a to b do"; e.g., "list(range(3))" returns the list "[0, 1, 2]".\n'
5972+
'all by the loop. Hint: the built-in type "range()" represents\n'
5973+
'immutable arithmetic sequences of integers. For instance, iterating\n'
5974+
'"range(3)" successively yields 0, 1, and then 2.\n'
59775975
'\n'
59785976
'Changed in version 3.11: Starred elements are now allowed in the\n'
59795977
'expression list.\n',
@@ -7781,7 +7779,7 @@
77817779
'within a code block. The local variables of a code block can be\n'
77827780
'determined by scanning the entire text of the block for name '
77837781
'binding\n'
7784-
'operations.\n'
7782+
'operations. See the FAQ entry on UnboundLocalError for examples.\n'
77857783
'\n'
77867784
'If the "global" statement occurs within a block, all uses of the '
77877785
'names\n'
@@ -11322,35 +11320,35 @@
1132211320
'\n'
1132311321
"str.encode(encoding='utf-8', errors='strict')\n"
1132411322
'\n'
11325-
' Return an encoded version of the string as a bytes '
11326-
'object. Default\n'
11327-
' encoding is "\'utf-8\'". *errors* may be given to set a '
11328-
'different\n'
11329-
' error handling scheme. The default for *errors* is '
11330-
'"\'strict\'",\n'
11331-
' meaning that encoding errors raise a "UnicodeError". '
11323+
' Return the string encoded to "bytes".\n'
11324+
'\n'
11325+
' *encoding* defaults to "\'utf-8\'"; see Standard '
11326+
'Encodings for\n'
11327+
' possible values.\n'
11328+
'\n'
11329+
' *errors* controls how encoding errors are handled. If '
11330+
'"\'strict\'"\n'
11331+
' (the default), a "UnicodeError" exception is raised. '
1133211332
'Other possible\n'
1133311333
' values are "\'ignore\'", "\'replace\'", '
1133411334
'"\'xmlcharrefreplace\'",\n'
1133511335
' "\'backslashreplace\'" and any other name registered '
1133611336
'via\n'
11337-
' "codecs.register_error()", see section Error Handlers. '
11338-
'For a list\n'
11339-
' of possible encodings, see section Standard Encodings.\n'
11337+
' "codecs.register_error()". See Error Handlers for '
11338+
'details.\n'
1134011339
'\n'
11341-
' By default, the *errors* argument is not checked for '
11342-
'best\n'
11343-
' performances, but only used at the first encoding '
11344-
'error. Enable the\n'
11345-
' Python Development Mode, or use a debug build to check '
11346-
'*errors*.\n'
11340+
' For performance reasons, the value of *errors* is not '
11341+
'checked for\n'
11342+
' validity unless an encoding error actually occurs, '
11343+
'Python\n'
11344+
' Development Mode is enabled or a debug build is used.\n'
1134711345
'\n'
11348-
' Changed in version 3.1: Support for keyword arguments '
11349-
'added.\n'
11346+
' Changed in version 3.1: Added support for keyword '
11347+
'arguments.\n'
1135011348
'\n'
11351-
' Changed in version 3.9: The *errors* is now checked in '
11352-
'development\n'
11353-
' mode and in debug mode.\n'
11349+
' Changed in version 3.9: The value of the *errors* '
11350+
'argument is now\n'
11351+
' checked in Python Development Mode and in debug mode.\n'
1135411352
'\n'
1135511353
'str.endswith(suffix[, start[, end]])\n'
1135611354
'\n'
@@ -14099,6 +14097,7 @@
1409914097
' >>> class Counter(dict):\n'
1410014098
' ... def __missing__(self, key):\n'
1410114099
' ... return 0\n'
14100+
' ...\n'
1410214101
' >>> c = Counter()\n'
1410314102
" >>> c['red']\n"
1410414103
' 0\n'
@@ -14425,6 +14424,7 @@
1442514424
' >>> n = 0\n'
1442614425
' >>> for val in values:\n'
1442714426
' ... n += val\n'
14427+
' ...\n'
1442814428
' >>> print(n)\n'
1442914429
' 504\n'
1443014430
'\n'
@@ -14452,8 +14452,7 @@
1445214452
' >>> # get back a read-only proxy for the original '
1445314453
'dictionary\n'
1445414454
' >>> values.mapping\n'
14455-
" mappingproxy({'eggs': 2, 'sausage': 1, 'bacon': 1, "
14456-
"'spam': 500})\n"
14455+
" mappingproxy({'bacon': 1, 'spam': 500})\n"
1445714456
" >>> values.mapping['spam']\n"
1445814457
' 500\n',
1445914458
'typesmethods': 'Methods\n'
@@ -15499,7 +15498,7 @@
1549915498
' returns without an error, then "__exit__()" will always be\n'
1550015499
' called. Thus, if an error occurs during the assignment to the\n'
1550115500
' target list, it will be treated the same as an error occurring\n'
15502-
' within the suite would be. See step 6 below.\n'
15501+
' within the suite would be. See step 7 below.\n'
1550315502
'\n'
1550415503
'6. The suite is executed.\n'
1550515504
'\n'

0 commit comments

Comments
 (0)