Skip to content

Commit b861ba4

Browse files
committed
Python 3.12.0a7
1 parent 89e6a34 commit b861ba4

File tree

76 files changed

+822
-224
lines changed

Some content is hidden

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

76 files changed

+822
-224
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 6
23+
#define PY_RELEASE_SERIAL 7
2424

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

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

Lib/pydoc_data/topics.py

+74-72
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Autogenerated by Sphinx on Tue Mar 7 22:42:28 2023
2+
# Autogenerated by Sphinx on Tue Apr 4 17:52:21 2023
33
topics = {'assert': 'The "assert" statement\n'
44
'**********************\n'
55
'\n'
@@ -1134,10 +1134,11 @@
11341134
'future, a\n'
11351135
' check may be added to prevent this.\n'
11361136
'\n'
1137-
'* Nonempty *__slots__* does not work for classes derived '
1138-
'from\n'
1139-
' “variable-length” built-in types such as "int", '
1140-
'"bytes" and "tuple".\n'
1137+
'* "TypeError" will be raised if nonempty *__slots__* are '
1138+
'defined for a\n'
1139+
' class derived from a ""variable-length" built-in type" '
1140+
'such as\n'
1141+
' "int", "bytes", and "tuple".\n'
11411142
'\n'
11421143
'* Any non-string *iterable* may be assigned to '
11431144
'*__slots__*.\n'
@@ -3072,7 +3073,7 @@
30723073
'AS\n'
30733074
'pattern binds the subject to the name on the right of the as '
30743075
'keyword\n'
3075-
'and succeeds. "capture_pattern" cannot be a a "_".\n'
3076+
'and succeeds. "capture_pattern" cannot be a "_".\n'
30763077
'\n'
30773078
'In simple terms "P as NAME" will match with "P", and on success '
30783079
'it\n'
@@ -4675,7 +4676,7 @@
46754676
'scripts. For\n'
46764677
'example:\n'
46774678
'\n'
4678-
' python3 -m pdb myscript.py\n'
4679+
' python -m pdb myscript.py\n'
46794680
'\n'
46804681
'When invoked as a script, pdb will automatically enter '
46814682
'post-mortem\n'
@@ -4695,7 +4696,7 @@
46954696
'\n'
46964697
'New in version 3.7: "pdb.py" now accepts a "-m" option that '
46974698
'execute\n'
4698-
'modules similar to the way "python3 -m" does. As with a script, '
4699+
'modules similar to the way "python -m" does. As with a script, '
46994700
'the\n'
47004701
'debugger will pause execution just before the first line of the\n'
47014702
'module.\n'
@@ -4759,8 +4760,8 @@
47594760
'object)\n'
47604761
' under debugger control. When "runeval()" returns, it returns '
47614762
'the\n'
4762-
' value of the expression. Otherwise this function is similar '
4763-
'to\n'
4763+
' value of the *expression*. Otherwise this function is '
4764+
'similar to\n'
47644765
' "run()".\n'
47654766
'\n'
47664767
'pdb.runcall(function, *args, **kwds)\n'
@@ -4799,7 +4800,7 @@
47994800
'pdb.pm()\n'
48004801
'\n'
48014802
' Enter post-mortem debugging of the traceback found in\n'
4802-
' "sys.last_exc".\n'
4803+
' "sys.last_traceback".\n'
48034804
'\n'
48044805
'The "run*" functions and "set_trace()" are aliases for '
48054806
'instantiating\n'
@@ -5022,14 +5023,15 @@
50225023
'ignore bpnumber [count]\n'
50235024
'\n'
50245025
' Set the ignore count for the given breakpoint number. If '
5025-
'count is\n'
5026-
' omitted, the ignore count is set to 0. A breakpoint becomes '
5027-
'active\n'
5028-
' when the ignore count is zero. When non-zero, the count is\n'
5029-
' decremented each time the breakpoint is reached and the '
5030-
'breakpoint\n'
5031-
' is not disabled and any associated condition evaluates to '
5032-
'true.\n'
5026+
'*count*\n'
5027+
' is omitted, the ignore count is set to 0. A breakpoint '
5028+
'becomes\n'
5029+
' active when the ignore count is zero. When non-zero, the '
5030+
'*count*\n'
5031+
' is decremented each time the breakpoint is reached and the\n'
5032+
' breakpoint is not disabled and any associated condition '
5033+
'evaluates\n'
5034+
' to true.\n'
50335035
'\n'
50345036
'condition bpnumber [condition]\n'
50355037
'\n'
@@ -5079,7 +5081,7 @@
50795081
' breakpoint—which could have its own command list, leading to\n'
50805082
' ambiguities about which list to execute.\n'
50815083
'\n'
5082-
' If you use the silent command in the command list, the '
5084+
' If you use the "silent" command in the command list, the '
50835085
'usual\n'
50845086
' message about stopping at a breakpoint is not printed. This '
50855087
'may be\n'
@@ -5114,11 +5116,10 @@
51145116
'number\n'
51155117
' greater than the current one is reached.\n'
51165118
'\n'
5117-
' With a line number, continue execution until a line with a '
5118-
'number\n'
5119-
' greater or equal to that is reached. In both cases, also '
5120-
'stop when\n'
5121-
' the current frame returns.\n'
5119+
' With *lineno*, continue execution until a line with a number\n'
5120+
' greater or equal to *lineno* is reached. In both cases, also '
5121+
'stop\n'
5122+
' when the current frame returns.\n'
51225123
'\n'
51235124
' Changed in version 3.2: Allow giving an explicit line '
51245125
'number.\n'
@@ -5182,9 +5183,8 @@
51825183
'\n'
51835184
'p expression\n'
51845185
'\n'
5185-
' Evaluate the *expression* in the current context and print '
5186-
'its\n'
5187-
' value.\n'
5186+
' Evaluate *expression* in the current context and print its '
5187+
'value.\n'
51885188
'\n'
51895189
' Note:\n'
51905190
'\n'
@@ -5194,37 +5194,37 @@
51945194
'\n'
51955195
'pp expression\n'
51965196
'\n'
5197-
' Like the "p" command, except the value of the expression is '
5197+
' Like the "p" command, except the value of *expression* is '
51985198
'pretty-\n'
51995199
' printed using the "pprint" module.\n'
52005200
'\n'
52015201
'whatis expression\n'
52025202
'\n'
5203-
' Print the type of the *expression*.\n'
5203+
' Print the type of *expression*.\n'
52045204
'\n'
52055205
'source expression\n'
52065206
'\n'
5207-
' Try to get source code for the given object and display it.\n'
5207+
' Try to get source code of *expression* and display it.\n'
52085208
'\n'
52095209
' New in version 3.2.\n'
52105210
'\n'
52115211
'display [expression]\n'
52125212
'\n'
5213-
' Display the value of the expression if it changed, each time\n'
5213+
' Display the value of *expression* if it changed, each time\n'
52145214
' execution stops in the current frame.\n'
52155215
'\n'
5216-
' Without expression, list all display expressions for the '
5216+
' Without *expression*, list all display expressions for the '
52175217
'current\n'
52185218
' frame.\n'
52195219
'\n'
52205220
' New in version 3.2.\n'
52215221
'\n'
52225222
'undisplay [expression]\n'
52235223
'\n'
5224-
' Do not display the expression any more in the current frame.\n'
5225-
' Without expression, clear all display expressions for the '
5226-
'current\n'
5227-
' frame.\n'
5224+
' Do not display *expression* anymore in the current frame. '
5225+
'Without\n'
5226+
' *expression*, clear all display expressions for the current '
5227+
'frame.\n'
52285228
'\n'
52295229
' New in version 3.2.\n'
52305230
'\n'
@@ -5240,16 +5240,16 @@
52405240
'\n'
52415241
'alias [name [command]]\n'
52425242
'\n'
5243-
' Create an alias called *name* that executes *command*. The '
5244-
'command\n'
5245-
' must *not* be enclosed in quotes. Replaceable parameters can '
5246-
'be\n'
5247-
' indicated by "%1", "%2", and so on, while "%*" is replaced by '
5248-
'all\n'
5249-
' the parameters. If no command is given, the current alias '
5250-
'for\n'
5251-
' *name* is shown. If no arguments are given, all aliases are '
5252-
'listed.\n'
5243+
' Create an alias called *name* that executes *command*. The\n'
5244+
' *command* must *not* be enclosed in quotes. Replaceable '
5245+
'parameters\n'
5246+
' can be indicated by "%1", "%2", and so on, while "%*" is '
5247+
'replaced\n'
5248+
' by all the parameters. If *command* is omitted, the current '
5249+
'alias\n'
5250+
' for *name* is shown. If no arguments are given, all aliases '
5251+
'are\n'
5252+
' listed.\n'
52535253
'\n'
52545254
' Aliases may be nested and can contain anything that can be '
52555255
'legally\n'
@@ -5268,14 +5268,14 @@
52685268
' in the ".pdbrc" file):\n'
52695269
'\n'
52705270
' # Print instance variables (usage "pi classInst")\n'
5271-
' alias pi for k in %1.__dict__.keys(): '
5272-
'print("%1.",k,"=",%1.__dict__[k])\n'
5271+
' alias pi for k in %1.__dict__.keys(): print(f"%1.{k} = '
5272+
'{%1.__dict__[k]}")\n'
52735273
' # Print instance variables in self\n'
52745274
' alias ps pi self\n'
52755275
'\n'
52765276
'unalias name\n'
52775277
'\n'
5278-
' Delete the specified alias.\n'
5278+
' Delete the specified alias *name*.\n'
52795279
'\n'
52805280
'! statement\n'
52815281
'\n'
@@ -5295,12 +5295,13 @@
52955295
'run [args ...]\n'
52965296
'restart [args ...]\n'
52975297
'\n'
5298-
' Restart the debugged Python program. If an argument is '
5299-
'supplied,\n'
5300-
' it is split with "shlex" and the result is used as the new\n'
5301-
' "sys.argv". History, breakpoints, actions and debugger '
5302-
'options are\n'
5303-
' preserved. "restart" is an alias for "run".\n'
5298+
' Restart the debugged Python program. If *args* is supplied, '
5299+
'it is\n'
5300+
' split with "shlex" and the result is used as the new '
5301+
'"sys.argv".\n'
5302+
' History, breakpoints, actions and debugger options are '
5303+
'preserved.\n'
5304+
' "restart" is an alias for "run".\n'
53045305
'\n'
53055306
'q(uit)\n'
53065307
'\n'
@@ -5309,11 +5310,11 @@
53095310
'\n'
53105311
'debug code\n'
53115312
'\n'
5312-
' Enter a recursive debugger that steps through the code '
5313-
'argument\n'
5314-
' (which is an arbitrary expression or statement to be executed '
5315-
'in\n'
5316-
' the current environment).\n'
5313+
' Enter a recursive debugger that steps through *code* (which '
5314+
'is an\n'
5315+
' arbitrary expression or statement to be executed in the '
5316+
'current\n'
5317+
' environment).\n'
53175318
'\n'
53185319
'retval\n'
53195320
'\n'
@@ -6170,7 +6171,8 @@
61706171
'The general form of a *standard format specifier* is:\n'
61716172
'\n'
61726173
' format_spec ::= '
6173-
'[[fill]align][sign][z][#][0][width][grouping_option][.precision][type]\n'
6174+
'[[fill]align][sign]["z"]["#"]["0"][width][grouping_option]["." '
6175+
'precision][type]\n'
61746176
' fill ::= <any character>\n'
61756177
' align ::= "<" | ">" | "=" | "^"\n'
61766178
' sign ::= "+" | "-" | " "\n'
@@ -9981,10 +9983,11 @@
99819983
'future, a\n'
99829984
' check may be added to prevent this.\n'
99839985
'\n'
9984-
'* Nonempty *__slots__* does not work for classes derived '
9985-
'from\n'
9986-
' “variable-length” built-in types such as "int", "bytes" '
9987-
'and "tuple".\n'
9986+
'* "TypeError" will be raised if nonempty *__slots__* are '
9987+
'defined for a\n'
9988+
' class derived from a ""variable-length" built-in type" '
9989+
'such as\n'
9990+
' "int", "bytes", and "tuple".\n'
99889991
'\n'
99899992
'* Any non-string *iterable* may be assigned to *__slots__*.\n'
99909993
'\n'
@@ -13691,11 +13694,10 @@
1369113694
' compiled; "co_firstlineno" is the first line number of the\n'
1369213695
' function; "co_lnotab" is a string encoding the mapping from\n'
1369313696
' bytecode offsets to line numbers (for details see the source\n'
13694-
' code of the interpreter); "co_stacksize" is the required '
13695-
'stack\n'
13696-
' size; "co_flags" is an integer encoding a number of flags '
13697-
'for\n'
13698-
' the interpreter.\n'
13697+
' code of the interpreter, is deprecated since 3.12 and may be\n'
13698+
' removed in 3.14); "co_stacksize" is the required stack size;\n'
13699+
' "co_flags" is an integer encoding a number of flags for the\n'
13700+
' interpreter.\n'
1369913701
'\n'
1370013702
' The following flag bits are defined for "co_flags": bit '
1370113703
'"0x04"\n'
@@ -13858,7 +13860,7 @@
1385813860
'if\n'
1385913861
' the interpreter is interactive, it is also made available to '
1386013862
'the\n'
13861-
' user as "sys.last_exc".\n'
13863+
' user as "sys.last_traceback".\n'
1386213864
'\n'
1386313865
' For explicitly created tracebacks, it is up to the creator '
1386413866
'of\n'

0 commit comments

Comments
 (0)