Skip to content

Commit de54cf5

Browse files
committed
Python 3.11.9
1 parent 5b547de commit de54cf5

File tree

90 files changed

+993
-265
lines changed

Some content is hidden

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

90 files changed

+993
-265
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 11
21-
#define PY_MICRO_VERSION 8
21+
#define PY_MICRO_VERSION 9
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.11.8+"
26+
#define PY_VERSION "3.11.9"
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: 88 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Autogenerated by Sphinx on Tue Feb 6 21:21:08 2024
2+
# Autogenerated by Sphinx on Tue Apr 2 09:24:48 2024
33
# as part of the release process.
44
topics = {'assert': 'The "assert" statement\n'
55
'**********************\n'
@@ -792,9 +792,9 @@
792792
'\n'
793793
'object.__dir__(self)\n'
794794
'\n'
795-
' Called when "dir()" is called on the object. A '
796-
'sequence must be\n'
797-
' returned. "dir()" converts the returned sequence to a '
795+
' Called when "dir()" is called on the object. An '
796+
'iterable must be\n'
797+
' returned. "dir()" converts the returned iterable to a '
798798
'list and\n'
799799
' sorts it.\n'
800800
'\n'
@@ -821,8 +821,8 @@
821821
'returned.\n'
822822
'\n'
823823
'The "__dir__" function should accept no arguments, and '
824-
'return a\n'
825-
'sequence of strings that represents the names accessible '
824+
'return an\n'
825+
'iterable of strings that represents the names accessible '
826826
'on module. If\n'
827827
'present, this function overrides the standard "dir()" '
828828
'search on a\n'
@@ -4492,7 +4492,7 @@
44924492
'reflection,\n'
44934493
' and "__eq__()" and "__ne__()" are their own reflection. '
44944494
'If the\n'
4495-
' operands are of different types, and right operand’s '
4495+
' operands are of different types, and the right operand’s '
44964496
'type is a\n'
44974497
' direct or indirect subclass of the left operand’s type, '
44984498
'the\n'
@@ -4502,6 +4502,11 @@
45024502
'is not\n'
45034503
' considered.\n'
45044504
'\n'
4505+
' When no appropriate method returns any value other than\n'
4506+
' "NotImplemented", the "==" and "!=" operators will fall '
4507+
'back to\n'
4508+
' "is" and "is not", respectively.\n'
4509+
'\n'
45054510
'object.__hash__(self)\n'
45064511
'\n'
45074512
' Called by built-in function "hash()" and for operations '
@@ -4957,22 +4962,23 @@
49574962
'the\n'
49584963
'current directory, it is read with "\'utf-8\'" encoding and '
49594964
'executed as\n'
4960-
'if it had been typed at the debugger prompt. This is '
4961-
'particularly\n'
4962-
'useful for aliases. If both files exist, the one in the home\n'
4963-
'directory is read first and aliases defined there can be '
4964-
'overridden by\n'
4965-
'the local file.\n'
4966-
'\n'
4967-
'Changed in version 3.11: ".pdbrc" is now read with "\'utf-8\'" '
4968-
'encoding.\n'
4969-
'Previously, it was read with the system locale encoding.\n'
4965+
'if it had been typed at the debugger prompt, with the exception '
4966+
'that\n'
4967+
'empty lines and lines starting with "#" are ignored. This is\n'
4968+
'particularly useful for aliases. If both files exist, the one '
4969+
'in the\n'
4970+
'home directory is read first and aliases defined there can be\n'
4971+
'overridden by the local file.\n'
49704972
'\n'
49714973
'Changed in version 3.2: ".pdbrc" can now contain commands that\n'
49724974
'continue debugging, such as "continue" or "next". Previously, '
49734975
'these\n'
49744976
'commands had no effect.\n'
49754977
'\n'
4978+
'Changed in version 3.11: ".pdbrc" is now read with "\'utf-8\'" '
4979+
'encoding.\n'
4980+
'Previously, it was read with the system locale encoding.\n'
4981+
'\n'
49764982
'h(elp) [command]\n'
49774983
'\n'
49784984
' Without argument, print the list of available commands. With '
@@ -8110,7 +8116,7 @@
81108116
'"__rsub__()"\n'
81118117
' method, "type(y).__rsub__(y, x)" is called if '
81128118
'"type(x).__sub__(x,\n'
8113-
' y)" returns *NotImplemented*.\n'
8119+
' y)" returns "NotImplemented".\n'
81148120
'\n'
81158121
' Note that ternary "pow()" will not try calling '
81168122
'"__rpow__()" (the\n'
@@ -8153,14 +8159,18 @@
81538159
'the result\n'
81548160
' (which could be, but does not have to be, *self*). If a '
81558161
'specific\n'
8156-
' method is not defined, the augmented assignment falls '
8157-
'back to the\n'
8158-
' normal methods. For instance, if *x* is an instance of '
8159-
'a class\n'
8160-
' with an "__iadd__()" method, "x += y" is equivalent to '
8161-
'"x =\n'
8162-
' x.__iadd__(y)" . Otherwise, "x.__add__(y)" and '
8163-
'"y.__radd__(x)" are\n'
8162+
' method is not defined, or if that method returns '
8163+
'"NotImplemented",\n'
8164+
' the augmented assignment falls back to the normal '
8165+
'methods. For\n'
8166+
' instance, if *x* is an instance of a class with an '
8167+
'"__iadd__()"\n'
8168+
' method, "x += y" is equivalent to "x = x.__iadd__(y)" . '
8169+
'If\n'
8170+
' "__iadd__()" does not exist, or if "x.__iadd__(y)" '
8171+
'returns\n'
8172+
' "NotImplemented", "x.__add__(y)" and "y.__radd__(x)" '
8173+
'are\n'
81648174
' considered, as with the evaluation of "x + y". In '
81658175
'certain\n'
81668176
' situations, augmented assignment can result in '
@@ -8241,7 +8251,7 @@
82418251
'Every object has an identity, a type and a value. An object’s\n'
82428252
'*identity* never changes once it has been created; you may think '
82438253
'of it\n'
8244-
'as the object’s address in memory. The "is" operator compares '
8254+
'as the object’s address in memory. The "is" operator compares '
82458255
'the\n'
82468256
'identity of two objects; the "id()" function returns an integer\n'
82478257
'representing its identity.\n'
@@ -8306,7 +8316,7 @@
83068316
'Note that the use of the implementation’s tracing or debugging\n'
83078317
'facilities may keep objects alive that would normally be '
83088318
'collectable.\n'
8309-
'Also note that catching an exception with a "try"…"except" '
8319+
'Also note that catching an exception with a "try"…"except" '
83108320
'statement\n'
83118321
'may keep objects alive.\n'
83128322
'\n'
@@ -8321,8 +8331,9 @@
83218331
'release the external resource, usually a "close()" method. '
83228332
'Programs\n'
83238333
'are strongly recommended to explicitly close such objects. The\n'
8324-
'‘"try"…"finally"’ statement and the ‘"with"’ statement provide\n'
8325-
'convenient ways to do this.\n'
8334+
'"try"…"finally" statement and the "with" statement provide '
8335+
'convenient\n'
8336+
'ways to do this.\n'
83268337
'\n'
83278338
'Some objects contain references to other objects; these are '
83288339
'called\n'
@@ -8699,10 +8710,7 @@
86998710
'The try statement.\n'
87008711
'\n'
87018712
'Changed in version 3.3: "None" is now permitted as "Y" in "raise X\n'
8702-
'from Y".\n'
8703-
'\n'
8704-
'New in version 3.3: The "__suppress_context__" attribute to '
8705-
'suppress\n'
8713+
'from Y".Added the "__suppress_context__" attribute to suppress\n'
87068714
'automatic display of the exception context.\n'
87078715
'\n'
87088716
'Changed in version 3.11: If the traceback of the active exception '
@@ -9479,8 +9487,8 @@
94799487
'reflection,\n'
94809488
' and "__eq__()" and "__ne__()" are their own reflection. '
94819489
'If the\n'
9482-
' operands are of different types, and right operand’s type '
9483-
'is a\n'
9490+
' operands are of different types, and the right operand’s '
9491+
'type is a\n'
94849492
' direct or indirect subclass of the left operand’s type, '
94859493
'the\n'
94869494
' reflected method of the right operand has priority, '
@@ -9489,6 +9497,11 @@
94899497
'is not\n'
94909498
' considered.\n'
94919499
'\n'
9500+
' When no appropriate method returns any value other than\n'
9501+
' "NotImplemented", the "==" and "!=" operators will fall '
9502+
'back to\n'
9503+
' "is" and "is not", respectively.\n'
9504+
'\n'
94929505
'object.__hash__(self)\n'
94939506
'\n'
94949507
' Called by built-in function "hash()" and for operations '
@@ -9730,9 +9743,9 @@
97309743
'\n'
97319744
'object.__dir__(self)\n'
97329745
'\n'
9733-
' Called when "dir()" is called on the object. A sequence '
9746+
' Called when "dir()" is called on the object. An iterable '
97349747
'must be\n'
9735-
' returned. "dir()" converts the returned sequence to a '
9748+
' returned. "dir()" converts the returned iterable to a '
97369749
'list and\n'
97379750
' sorts it.\n'
97389751
'\n'
@@ -9759,8 +9772,8 @@
97599772
'returned.\n'
97609773
'\n'
97619774
'The "__dir__" function should accept no arguments, and '
9762-
'return a\n'
9763-
'sequence of strings that represents the names accessible on '
9775+
'return an\n'
9776+
'iterable of strings that represents the names accessible on '
97649777
'module. If\n'
97659778
'present, this function overrides the standard "dir()" search '
97669779
'on a\n'
@@ -11023,7 +11036,7 @@
1102311036
'"__rsub__()"\n'
1102411037
' method, "type(y).__rsub__(y, x)" is called if '
1102511038
'"type(x).__sub__(x,\n'
11026-
' y)" returns *NotImplemented*.\n'
11039+
' y)" returns "NotImplemented".\n'
1102711040
'\n'
1102811041
' Note that ternary "pow()" will not try calling '
1102911042
'"__rpow__()" (the\n'
@@ -11066,14 +11079,17 @@
1106611079
'the result\n'
1106711080
' (which could be, but does not have to be, *self*). If a '
1106811081
'specific\n'
11069-
' method is not defined, the augmented assignment falls '
11070-
'back to the\n'
11071-
' normal methods. For instance, if *x* is an instance of a '
11072-
'class\n'
11073-
' with an "__iadd__()" method, "x += y" is equivalent to "x '
11074-
'=\n'
11075-
' x.__iadd__(y)" . Otherwise, "x.__add__(y)" and '
11076-
'"y.__radd__(x)" are\n'
11082+
' method is not defined, or if that method returns '
11083+
'"NotImplemented",\n'
11084+
' the augmented assignment falls back to the normal '
11085+
'methods. For\n'
11086+
' instance, if *x* is an instance of a class with an '
11087+
'"__iadd__()"\n'
11088+
' method, "x += y" is equivalent to "x = x.__iadd__(y)" . '
11089+
'If\n'
11090+
' "__iadd__()" does not exist, or if "x.__iadd__(y)" '
11091+
'returns\n'
11092+
' "NotImplemented", "x.__add__(y)" and "y.__radd__(x)" are\n'
1107711093
' considered, as with the evaluation of "x + y". In '
1107811094
'certain\n'
1107911095
' situations, augmented assignment can result in unexpected '
@@ -12356,9 +12372,8 @@
1235612372
'\n'
1235712373
'New in version 3.3: The "\'rb\'" prefix of raw bytes literals has '
1235812374
'been\n'
12359-
'added as a synonym of "\'br\'".\n'
12360-
'\n'
12361-
'New in version 3.3: Support for the unicode legacy literal\n'
12375+
'added as a synonym of "\'br\'".Support for the unicode legacy '
12376+
'literal\n'
1236212377
'("u\'value\'") was reintroduced to simplify the maintenance of '
1236312378
'dual\n'
1236412379
'Python 2.x and 3.x codebases. See **PEP 414** for more '
@@ -13065,14 +13080,18 @@
1306513080
'contains\n'
1306613081
'the numbers 0, 1, …, *n*-1. Item *i* of sequence *a* is selected '
1306713082
'by\n'
13068-
'"a[i]".\n'
13083+
'"a[i]". Some sequences, including built-in sequences, interpret\n'
13084+
'negative subscripts by adding the sequence length. For example,\n'
13085+
'"a[-2]" equals "a[n-2]", the second to last item of sequence a '
13086+
'with\n'
13087+
'length "n".\n'
1306913088
'\n'
1307013089
'Sequences also support slicing: "a[i:j]" selects all items with '
1307113090
'index\n'
1307213091
'*k* such that *i* "<=" *k* "<" *j*. When used as an expression, a\n'
13073-
'slice is a sequence of the same type. This implies that the index '
13074-
'set\n'
13075-
'is renumbered so that it starts at 0.\n'
13092+
'slice is a sequence of the same type. The comment above about '
13093+
'negative\n'
13094+
'indexes also applies to negative slice positions.\n'
1307613095
'\n'
1307713096
'Some sequences also support “extended slicing” with a third “step”\n'
1307813097
'parameter: "a[i:j:k]" selects all items of *a* with index *x* where '
@@ -13809,7 +13828,9 @@
1380913828
'name |\n'
1381013829
'+----------------------------------------------------+----------------------------------------------------+\n'
1381113830
'| codeobject.co_qualname | The fully '
13812-
'qualified function name |\n'
13831+
'qualified function name New in version |\n'
13832+
'| | '
13833+
'3.11. |\n'
1381313834
'+----------------------------------------------------+----------------------------------------------------+\n'
1381413835
'| codeobject.co_argcount | The total '
1381513836
'number of positional *parameters* |\n'
@@ -14025,6 +14046,14 @@
1402514046
'tools.\n'
1402614047
' The PEP that introduced the "co_lines()" method.\n'
1402714048
'\n'
14049+
'codeobject.replace(**kwargs)\n'
14050+
'\n'
14051+
' Return a copy of the code object with new values for the '
14052+
'specified\n'
14053+
' fields.\n'
14054+
'\n'
14055+
' New in version 3.8.\n'
14056+
'\n'
1402814057
'\n'
1402914058
'Frame objects\n'
1403014059
'-------------\n'
@@ -15570,9 +15599,8 @@
1557015599
'objects\n'
1557115600
'based on the sequence of values they define (instead of '
1557215601
'comparing\n'
15573-
'based on object identity).\n'
15574-
'\n'
15575-
'New in version 3.3: The "start", "stop" and "step" attributes.\n'
15602+
'based on object identity).Added the "start", "stop" and "step"\n'
15603+
'attributes.\n'
1557615604
'\n'
1557715605
'See also:\n'
1557815606
'\n'

0 commit comments

Comments
 (0)