mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
Python 3.12.2
This commit is contained in:
parent
831b95d9b9
commit
6abddd9f6a
109 changed files with 1455 additions and 530 deletions
|
@ -18,12 +18,12 @@
|
||||||
/*--start constants--*/
|
/*--start constants--*/
|
||||||
#define PY_MAJOR_VERSION 3
|
#define PY_MAJOR_VERSION 3
|
||||||
#define PY_MINOR_VERSION 12
|
#define PY_MINOR_VERSION 12
|
||||||
#define PY_MICRO_VERSION 1
|
#define PY_MICRO_VERSION 2
|
||||||
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL
|
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL
|
||||||
#define PY_RELEASE_SERIAL 0
|
#define PY_RELEASE_SERIAL 0
|
||||||
|
|
||||||
/* Version as a string */
|
/* Version as a string */
|
||||||
#define PY_VERSION "3.12.1+"
|
#define PY_VERSION "3.12.2"
|
||||||
/*--end constants--*/
|
/*--end constants--*/
|
||||||
|
|
||||||
/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
|
/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Autogenerated by Sphinx on Thu Dec 7 21:32:35 2023
|
# Autogenerated by Sphinx on Tue Feb 6 21:16:37 2024
|
||||||
# as part of the release process.
|
# as part of the release process.
|
||||||
topics = {'assert': 'The "assert" statement\n'
|
topics = {'assert': 'The "assert" statement\n'
|
||||||
'**********************\n'
|
'**********************\n'
|
||||||
|
@ -3058,8 +3058,7 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'standard\n'
|
'standard\n'
|
||||||
'Python grammar. Triple-quoted strings are supported. Raw '
|
'Python grammar. Triple-quoted strings are supported. Raw '
|
||||||
'strings and\n'
|
'strings and\n'
|
||||||
'byte strings are supported. Formatted string literals are not\n'
|
'byte strings are supported. f-strings are not supported.\n'
|
||||||
'supported.\n'
|
|
||||||
'\n'
|
'\n'
|
||||||
'The forms "signed_number \'+\' NUMBER" and "signed_number \'-\' '
|
'The forms "signed_number \'+\' NUMBER" and "signed_number \'-\' '
|
||||||
'NUMBER"\n'
|
'NUMBER"\n'
|
||||||
|
@ -3713,7 +3712,7 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
' **PEP 526** - Syntax for Variable Annotations\n'
|
' **PEP 526** - Syntax for Variable Annotations\n'
|
||||||
' Ability to type hint variable declarations, including '
|
' Ability to type hint variable declarations, including '
|
||||||
'class\n'
|
'class\n'
|
||||||
' variables and instance variables\n'
|
' variables and instance variables.\n'
|
||||||
'\n'
|
'\n'
|
||||||
' **PEP 563** - Postponed Evaluation of Annotations\n'
|
' **PEP 563** - Postponed Evaluation of Annotations\n'
|
||||||
' Support for forward references within annotations by '
|
' Support for forward references within annotations by '
|
||||||
|
@ -3721,6 +3720,11 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
' annotations in a string form at runtime instead of eager\n'
|
' annotations in a string form at runtime instead of eager\n'
|
||||||
' evaluation.\n'
|
' evaluation.\n'
|
||||||
'\n'
|
'\n'
|
||||||
|
' **PEP 318** - Decorators for Functions and Methods\n'
|
||||||
|
' Function and method decorators were introduced. Class '
|
||||||
|
'decorators\n'
|
||||||
|
' were introduced in **PEP 3129**.\n'
|
||||||
|
'\n'
|
||||||
'\n'
|
'\n'
|
||||||
'Class definitions\n'
|
'Class definitions\n'
|
||||||
'=================\n'
|
'=================\n'
|
||||||
|
@ -4837,8 +4841,8 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'denial-of-service caused\n'
|
'denial-of-service caused\n'
|
||||||
' by carefully chosen inputs that exploit the worst '
|
' by carefully chosen inputs that exploit the worst '
|
||||||
'case\n'
|
'case\n'
|
||||||
' performance of a dict insertion, O(n^2) complexity. '
|
' performance of a dict insertion, *O*(*n*^2) '
|
||||||
'See\n'
|
'complexity. See\n'
|
||||||
' http://ocert.org/advisories/ocert-2011-003.html for\n'
|
' http://ocert.org/advisories/ocert-2011-003.html for\n'
|
||||||
' details.Changing hash values affects the iteration '
|
' details.Changing hash values affects the iteration '
|
||||||
'order of sets.\n'
|
'order of sets.\n'
|
||||||
|
@ -4917,7 +4921,7 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'and continue running without the debugger using the "continue"\n'
|
'and continue running without the debugger using the "continue"\n'
|
||||||
'command.\n'
|
'command.\n'
|
||||||
'\n'
|
'\n'
|
||||||
'New in version 3.7: The built-in "breakpoint()", when called '
|
'Changed in version 3.7: The built-in "breakpoint()", when called '
|
||||||
'with\n'
|
'with\n'
|
||||||
'defaults, can be used instead of "import pdb; pdb.set_trace()".\n'
|
'defaults, can be used instead of "import pdb; pdb.set_trace()".\n'
|
||||||
'\n'
|
'\n'
|
||||||
|
@ -4961,11 +4965,11 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'the\n'
|
'the\n'
|
||||||
'debugger upon program’s exit.\n'
|
'debugger upon program’s exit.\n'
|
||||||
'\n'
|
'\n'
|
||||||
'New in version 3.2: "-c" option is introduced to execute '
|
'Changed in version 3.2: Added the "-c" option to execute '
|
||||||
'commands as\n'
|
'commands as\n'
|
||||||
'if given in a ".pdbrc" file, see Debugger Commands.\n'
|
'if given in a ".pdbrc" file; see Debugger Commands.\n'
|
||||||
'\n'
|
'\n'
|
||||||
'New in version 3.7: "-m" option is introduced to execute '
|
'Changed in version 3.7: Added the "-m" option to execute '
|
||||||
'modules\n'
|
'modules\n'
|
||||||
'similar to the way "python -m" does. As with a script, the '
|
'similar to the way "python -m" does. As with a script, the '
|
||||||
'debugger\n'
|
'debugger\n'
|
||||||
|
@ -5111,11 +5115,11 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'\n'
|
'\n'
|
||||||
' Raises an auditing event "pdb.Pdb" with no arguments.\n'
|
' Raises an auditing event "pdb.Pdb" with no arguments.\n'
|
||||||
'\n'
|
'\n'
|
||||||
' New in version 3.1: The *skip* argument.\n'
|
' Changed in version 3.1: Added the *skip* parameter.\n'
|
||||||
'\n'
|
'\n'
|
||||||
' New in version 3.2: The *nosigint* argument. Previously, a '
|
' Changed in version 3.2: Added the *nosigint* parameter. '
|
||||||
'SIGINT\n'
|
'Previously,\n'
|
||||||
' handler was never set by Pdb.\n'
|
' a SIGINT handler was never set by Pdb.\n'
|
||||||
'\n'
|
'\n'
|
||||||
' Changed in version 3.6: The *readrc* argument.\n'
|
' Changed in version 3.6: The *readrc* argument.\n'
|
||||||
'\n'
|
'\n'
|
||||||
|
@ -5458,7 +5462,7 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'differs\n'
|
'differs\n'
|
||||||
' from the current line.\n'
|
' from the current line.\n'
|
||||||
'\n'
|
'\n'
|
||||||
' New in version 3.2: The ">>" marker.\n'
|
' Changed in version 3.2: Added the ">>" marker.\n'
|
||||||
'\n'
|
'\n'
|
||||||
'll | longlist\n'
|
'll | longlist\n'
|
||||||
'\n'
|
'\n'
|
||||||
|
@ -6390,15 +6394,15 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'originally\n'
|
'originally\n'
|
||||||
'proposed by **PEP 448**.\n'
|
'proposed by **PEP 448**.\n'
|
||||||
'\n'
|
'\n'
|
||||||
'The trailing comma is required only to create a single tuple '
|
'A trailing comma is required only to create a one-item tuple, '
|
||||||
'(a.k.a. a\n'
|
'such as\n'
|
||||||
'*singleton*); it is optional in all other cases. A single '
|
'"1,"; it is optional in all other cases. A single expression '
|
||||||
'expression\n'
|
'without a\n'
|
||||||
'without a trailing comma doesn’t create a tuple, but rather '
|
'trailing comma doesn’t create a tuple, but rather yields the '
|
||||||
'yields the\n'
|
'value of\n'
|
||||||
'value of that expression. (To create an empty tuple, use an '
|
'that expression. (To create an empty tuple, use an empty pair '
|
||||||
'empty pair\n'
|
'of\n'
|
||||||
'of parentheses: "()".)\n',
|
'parentheses: "()".)\n',
|
||||||
'floating': 'Floating point literals\n'
|
'floating': 'Floating point literals\n'
|
||||||
'***********************\n'
|
'***********************\n'
|
||||||
'\n'
|
'\n'
|
||||||
|
@ -6512,7 +6516,7 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
' index_string ::= <any source character except "]"> '
|
' index_string ::= <any source character except "]"> '
|
||||||
'+\n'
|
'+\n'
|
||||||
' conversion ::= "r" | "s" | "a"\n'
|
' conversion ::= "r" | "s" | "a"\n'
|
||||||
' format_spec ::= <described in the next section>\n'
|
' format_spec ::= format-spec:format_spec\n'
|
||||||
'\n'
|
'\n'
|
||||||
'In less formal terms, the replacement field can start with '
|
'In less formal terms, the replacement field can start with '
|
||||||
'a\n'
|
'a\n'
|
||||||
|
@ -6647,12 +6651,11 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'contained\n'
|
'contained\n'
|
||||||
'within a format string to define how individual values are '
|
'within a format string to define how individual values are '
|
||||||
'presented\n'
|
'presented\n'
|
||||||
'(see Format String Syntax and Formatted string literals). '
|
'(see Format String Syntax and f-strings). They can also be '
|
||||||
'They can\n'
|
'passed\n'
|
||||||
'also be passed directly to the built-in "format()" '
|
'directly to the built-in "format()" function. Each '
|
||||||
'function. Each\n'
|
'formattable type\n'
|
||||||
'formattable type may define how the format specification is '
|
'may define how the format specification is to be '
|
||||||
'to be\n'
|
|
||||||
'interpreted.\n'
|
'interpreted.\n'
|
||||||
'\n'
|
'\n'
|
||||||
'Most built-in types implement the following options for '
|
'Most built-in types implement the following options for '
|
||||||
|
@ -7467,13 +7470,18 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
' **PEP 526** - Syntax for Variable Annotations\n'
|
' **PEP 526** - Syntax for Variable Annotations\n'
|
||||||
' Ability to type hint variable declarations, including '
|
' Ability to type hint variable declarations, including '
|
||||||
'class\n'
|
'class\n'
|
||||||
' variables and instance variables\n'
|
' variables and instance variables.\n'
|
||||||
'\n'
|
'\n'
|
||||||
' **PEP 563** - Postponed Evaluation of Annotations\n'
|
' **PEP 563** - Postponed Evaluation of Annotations\n'
|
||||||
' Support for forward references within annotations by '
|
' Support for forward references within annotations by '
|
||||||
'preserving\n'
|
'preserving\n'
|
||||||
' annotations in a string form at runtime instead of eager\n'
|
' annotations in a string form at runtime instead of eager\n'
|
||||||
' evaluation.\n',
|
' evaluation.\n'
|
||||||
|
'\n'
|
||||||
|
' **PEP 318** - Decorators for Functions and Methods\n'
|
||||||
|
' Function and method decorators were introduced. Class '
|
||||||
|
'decorators\n'
|
||||||
|
' were introduced in **PEP 3129**.\n',
|
||||||
'global': 'The "global" statement\n'
|
'global': 'The "global" statement\n'
|
||||||
'**********************\n'
|
'**********************\n'
|
||||||
'\n'
|
'\n'
|
||||||
|
@ -9170,15 +9178,13 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'\n'
|
'\n'
|
||||||
'A traceback object is normally created automatically when an '
|
'A traceback object is normally created automatically when an '
|
||||||
'exception\n'
|
'exception\n'
|
||||||
'is raised and attached to it as the "__traceback__" attribute, '
|
'is raised and attached to it as the "__traceback__" attribute. You '
|
||||||
'which\n'
|
'can\n'
|
||||||
'is writable. You can create an exception and set your own traceback '
|
'create an exception and set your own traceback in one step using '
|
||||||
'in\n'
|
'the\n'
|
||||||
'one step using the "with_traceback()" exception method (which '
|
'"with_traceback()" exception method (which returns the same '
|
||||||
'returns\n'
|
'exception\n'
|
||||||
'the same exception instance, with its traceback set to its '
|
'instance, with its traceback set to its argument), like so:\n'
|
||||||
'argument),\n'
|
|
||||||
'like so:\n'
|
|
||||||
'\n'
|
'\n'
|
||||||
' raise Exception("foo occurred").with_traceback(tracebackobj)\n'
|
' raise Exception("foo occurred").with_traceback(tracebackobj)\n'
|
||||||
'\n'
|
'\n'
|
||||||
|
@ -9204,6 +9210,8 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
' ...\n'
|
' ...\n'
|
||||||
' Traceback (most recent call last):\n'
|
' Traceback (most recent call last):\n'
|
||||||
' File "<stdin>", line 2, in <module>\n'
|
' File "<stdin>", line 2, in <module>\n'
|
||||||
|
' print(1 / 0)\n'
|
||||||
|
' ~~^~~\n'
|
||||||
' ZeroDivisionError: division by zero\n'
|
' ZeroDivisionError: division by zero\n'
|
||||||
'\n'
|
'\n'
|
||||||
' The above exception was the direct cause of the following '
|
' The above exception was the direct cause of the following '
|
||||||
|
@ -9211,6 +9219,7 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'\n'
|
'\n'
|
||||||
' Traceback (most recent call last):\n'
|
' Traceback (most recent call last):\n'
|
||||||
' File "<stdin>", line 4, in <module>\n'
|
' File "<stdin>", line 4, in <module>\n'
|
||||||
|
' raise RuntimeError("Something bad happened") from exc\n'
|
||||||
' RuntimeError: Something bad happened\n'
|
' RuntimeError: Something bad happened\n'
|
||||||
'\n'
|
'\n'
|
||||||
'A similar mechanism works implicitly if a new exception is raised '
|
'A similar mechanism works implicitly if a new exception is raised '
|
||||||
|
@ -9229,6 +9238,8 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
' ...\n'
|
' ...\n'
|
||||||
' Traceback (most recent call last):\n'
|
' Traceback (most recent call last):\n'
|
||||||
' File "<stdin>", line 2, in <module>\n'
|
' File "<stdin>", line 2, in <module>\n'
|
||||||
|
' print(1 / 0)\n'
|
||||||
|
' ~~^~~\n'
|
||||||
' ZeroDivisionError: division by zero\n'
|
' ZeroDivisionError: division by zero\n'
|
||||||
'\n'
|
'\n'
|
||||||
' During handling of the above exception, another exception '
|
' During handling of the above exception, another exception '
|
||||||
|
@ -9236,6 +9247,7 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'\n'
|
'\n'
|
||||||
' Traceback (most recent call last):\n'
|
' Traceback (most recent call last):\n'
|
||||||
' File "<stdin>", line 4, in <module>\n'
|
' File "<stdin>", line 4, in <module>\n'
|
||||||
|
' raise RuntimeError("Something bad happened")\n'
|
||||||
' RuntimeError: Something bad happened\n'
|
' RuntimeError: Something bad happened\n'
|
||||||
'\n'
|
'\n'
|
||||||
'Exception chaining can be explicitly suppressed by specifying '
|
'Exception chaining can be explicitly suppressed by specifying '
|
||||||
|
@ -9424,23 +9436,20 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'\n'
|
'\n'
|
||||||
' Called to implement evaluation of "self[key]". For '
|
' Called to implement evaluation of "self[key]". For '
|
||||||
'*sequence*\n'
|
'*sequence*\n'
|
||||||
' types, the accepted keys should be integers and slice '
|
' types, the accepted keys should be integers. '
|
||||||
'objects.\n'
|
'Optionally, they may\n'
|
||||||
' Note that the special interpretation of negative '
|
' support "slice" objects as well. Negative index '
|
||||||
'indexes (if the\n'
|
'support is also\n'
|
||||||
' class wishes to emulate a *sequence* type) is up to '
|
' optional. If *key* is of an inappropriate type, '
|
||||||
'the\n'
|
'"TypeError" may be\n'
|
||||||
' "__getitem__()" method. If *key* is of an inappropriate '
|
' raised; if *key* is a value outside the set of indexes '
|
||||||
'type,\n'
|
'for the\n'
|
||||||
' "TypeError" may be raised; if of a value outside the '
|
' sequence (after any special interpretation of negative '
|
||||||
'set of indexes\n'
|
'values),\n'
|
||||||
' for the sequence (after any special interpretation of '
|
' "IndexError" should be raised. For *mapping* types, if '
|
||||||
'negative\n'
|
'*key* is\n'
|
||||||
' values), "IndexError" should be raised. For *mapping* '
|
' missing (not in the container), "KeyError" should be '
|
||||||
'types, if\n'
|
'raised.\n'
|
||||||
' *key* is missing (not in the container), "KeyError" '
|
|
||||||
'should be\n'
|
|
||||||
' raised.\n'
|
|
||||||
'\n'
|
'\n'
|
||||||
' Note:\n'
|
' Note:\n'
|
||||||
'\n'
|
'\n'
|
||||||
|
@ -10162,8 +10171,8 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
' intended to provide protection against a '
|
' intended to provide protection against a '
|
||||||
'denial-of-service caused\n'
|
'denial-of-service caused\n'
|
||||||
' by carefully chosen inputs that exploit the worst case\n'
|
' by carefully chosen inputs that exploit the worst case\n'
|
||||||
' performance of a dict insertion, O(n^2) complexity. '
|
' performance of a dict insertion, *O*(*n*^2) '
|
||||||
'See\n'
|
'complexity. See\n'
|
||||||
' http://ocert.org/advisories/ocert-2011-003.html for\n'
|
' http://ocert.org/advisories/ocert-2011-003.html for\n'
|
||||||
' details.Changing hash values affects the iteration '
|
' details.Changing hash values affects the iteration '
|
||||||
'order of sets.\n'
|
'order of sets.\n'
|
||||||
|
@ -10706,7 +10715,7 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'\n'
|
'\n'
|
||||||
' Keyword arguments which are given to a new class are '
|
' Keyword arguments which are given to a new class are '
|
||||||
'passed to the\n'
|
'passed to the\n'
|
||||||
' parent’s class "__init_subclass__". For compatibility '
|
' parent class’s "__init_subclass__". For compatibility '
|
||||||
'with other\n'
|
'with other\n'
|
||||||
' classes using "__init_subclass__", one should take out '
|
' classes using "__init_subclass__", one should take out '
|
||||||
'the needed\n'
|
'the needed\n'
|
||||||
|
@ -11393,22 +11402,20 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'\n'
|
'\n'
|
||||||
' Called to implement evaluation of "self[key]". For '
|
' Called to implement evaluation of "self[key]". For '
|
||||||
'*sequence*\n'
|
'*sequence*\n'
|
||||||
' types, the accepted keys should be integers and slice '
|
' types, the accepted keys should be integers. Optionally, '
|
||||||
'objects.\n'
|
'they may\n'
|
||||||
' Note that the special interpretation of negative indexes '
|
' support "slice" objects as well. Negative index support '
|
||||||
'(if the\n'
|
'is also\n'
|
||||||
' class wishes to emulate a *sequence* type) is up to the\n'
|
' optional. If *key* is of an inappropriate type, '
|
||||||
' "__getitem__()" method. If *key* is of an inappropriate '
|
'"TypeError" may be\n'
|
||||||
'type,\n'
|
' raised; if *key* is a value outside the set of indexes '
|
||||||
' "TypeError" may be raised; if of a value outside the set '
|
'for the\n'
|
||||||
'of indexes\n'
|
' sequence (after any special interpretation of negative '
|
||||||
' for the sequence (after any special interpretation of '
|
'values),\n'
|
||||||
'negative\n'
|
' "IndexError" should be raised. For *mapping* types, if '
|
||||||
' values), "IndexError" should be raised. For *mapping* '
|
'*key* is\n'
|
||||||
'types, if\n'
|
' missing (not in the container), "KeyError" should be '
|
||||||
' *key* is missing (not in the container), "KeyError" '
|
'raised.\n'
|
||||||
'should be\n'
|
|
||||||
' raised.\n'
|
|
||||||
'\n'
|
'\n'
|
||||||
' Note:\n'
|
' Note:\n'
|
||||||
'\n'
|
'\n'
|
||||||
|
@ -13001,12 +13008,11 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'\n'
|
'\n'
|
||||||
'A string literal with "\'f\'" or "\'F\'" in its prefix is a '
|
'A string literal with "\'f\'" or "\'F\'" in its prefix is a '
|
||||||
'*formatted\n'
|
'*formatted\n'
|
||||||
'string literal*; see Formatted string literals. The "\'f\'" may '
|
'string literal*; see f-strings. The "\'f\'" may be combined with '
|
||||||
'be\n'
|
'"\'r\'",\n'
|
||||||
'combined with "\'r\'", but not with "\'b\'" or "\'u\'", therefore '
|
'but not with "\'b\'" or "\'u\'", therefore raw formatted strings '
|
||||||
'raw\n'
|
'are\n'
|
||||||
'formatted strings are possible, but formatted bytes literals are '
|
'possible, but formatted bytes literals are not.\n'
|
||||||
'not.\n'
|
|
||||||
'\n'
|
'\n'
|
||||||
'In triple-quoted literals, unescaped newlines and quotes are '
|
'In triple-quoted literals, unescaped newlines and quotes are '
|
||||||
'allowed\n'
|
'allowed\n'
|
||||||
|
@ -13910,130 +13916,117 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'function’s\n'
|
'function’s\n'
|
||||||
'formal parameter list.\n'
|
'formal parameter list.\n'
|
||||||
'\n'
|
'\n'
|
||||||
'Special attributes:\n'
|
|
||||||
'\n'
|
'\n'
|
||||||
'+---------------------------+---------------------------------+-------------+\n'
|
'Special read-only attributes\n'
|
||||||
'| Attribute | Meaning '
|
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n'
|
||||||
'| |\n'
|
|
||||||
'|===========================|=================================|=============|\n'
|
|
||||||
'| "__doc__" | The function’s documentation | '
|
|
||||||
'Writable |\n'
|
|
||||||
'| | string, or "None" if '
|
|
||||||
'| |\n'
|
|
||||||
'| | unavailable; not inherited by '
|
|
||||||
'| |\n'
|
|
||||||
'| | subclasses. '
|
|
||||||
'| |\n'
|
|
||||||
'+---------------------------+---------------------------------+-------------+\n'
|
|
||||||
'| "__name__" | The function’s name. | '
|
|
||||||
'Writable |\n'
|
|
||||||
'+---------------------------+---------------------------------+-------------+\n'
|
|
||||||
'| "__qualname__" | The function’s *qualified | '
|
|
||||||
'Writable |\n'
|
|
||||||
'| | name*. New in version 3.3. '
|
|
||||||
'| |\n'
|
|
||||||
'+---------------------------+---------------------------------+-------------+\n'
|
|
||||||
'| "__module__" | The name of the module the | '
|
|
||||||
'Writable |\n'
|
|
||||||
'| | function was defined in, or '
|
|
||||||
'| |\n'
|
|
||||||
'| | "None" if unavailable. '
|
|
||||||
'| |\n'
|
|
||||||
'+---------------------------+---------------------------------+-------------+\n'
|
|
||||||
'| "__defaults__" | A tuple containing default | '
|
|
||||||
'Writable |\n'
|
|
||||||
'| | argument values for those '
|
|
||||||
'| |\n'
|
|
||||||
'| | arguments that have defaults, '
|
|
||||||
'| |\n'
|
|
||||||
'| | or "None" if no arguments have '
|
|
||||||
'| |\n'
|
|
||||||
'| | a default value. '
|
|
||||||
'| |\n'
|
|
||||||
'+---------------------------+---------------------------------+-------------+\n'
|
|
||||||
'| "__code__" | The code object representing | '
|
|
||||||
'Writable |\n'
|
|
||||||
'| | the compiled function body. '
|
|
||||||
'| |\n'
|
|
||||||
'+---------------------------+---------------------------------+-------------+\n'
|
|
||||||
'| "__globals__" | A reference to the dictionary | '
|
|
||||||
'Read-only |\n'
|
|
||||||
'| | that holds the function’s '
|
|
||||||
'| |\n'
|
|
||||||
'| | global variables — the global '
|
|
||||||
'| |\n'
|
|
||||||
'| | namespace of the module in '
|
|
||||||
'| |\n'
|
|
||||||
'| | which the function was defined. '
|
|
||||||
'| |\n'
|
|
||||||
'+---------------------------+---------------------------------+-------------+\n'
|
|
||||||
'| "__dict__" | The namespace supporting | '
|
|
||||||
'Writable |\n'
|
|
||||||
'| | arbitrary function attributes. '
|
|
||||||
'| |\n'
|
|
||||||
'+---------------------------+---------------------------------+-------------+\n'
|
|
||||||
'| "__closure__" | "None" or a tuple of cells that | '
|
|
||||||
'Read-only |\n'
|
|
||||||
'| | contain bindings for the '
|
|
||||||
'| |\n'
|
|
||||||
'| | function’s free variables. See '
|
|
||||||
'| |\n'
|
|
||||||
'| | below for information on the '
|
|
||||||
'| |\n'
|
|
||||||
'| | "cell_contents" attribute. '
|
|
||||||
'| |\n'
|
|
||||||
'+---------------------------+---------------------------------+-------------+\n'
|
|
||||||
'| "__annotations__" | A dict containing annotations | '
|
|
||||||
'Writable |\n'
|
|
||||||
'| | of parameters. The keys of the '
|
|
||||||
'| |\n'
|
|
||||||
'| | dict are the parameter names, '
|
|
||||||
'| |\n'
|
|
||||||
'| | and "\'return\'" for the return '
|
|
||||||
'| |\n'
|
|
||||||
'| | annotation, if provided. For '
|
|
||||||
'| |\n'
|
|
||||||
'| | more information on working '
|
|
||||||
'| |\n'
|
|
||||||
'| | with this attribute, see '
|
|
||||||
'| |\n'
|
|
||||||
'| | Annotations Best Practices. '
|
|
||||||
'| |\n'
|
|
||||||
'+---------------------------+---------------------------------+-------------+\n'
|
|
||||||
'| "__kwdefaults__" | A dict containing defaults for | '
|
|
||||||
'Writable |\n'
|
|
||||||
'| | keyword-only parameters. '
|
|
||||||
'| |\n'
|
|
||||||
'+---------------------------+---------------------------------+-------------+\n'
|
|
||||||
'| "__type_params__" | A tuple containing the type | '
|
|
||||||
'Writable |\n'
|
|
||||||
'| | parameters of a generic '
|
|
||||||
'| |\n'
|
|
||||||
'| | function. '
|
|
||||||
'| |\n'
|
|
||||||
'+---------------------------+---------------------------------+-------------+\n'
|
|
||||||
'\n'
|
'\n'
|
||||||
'Most of the attributes labelled “Writable” check the type of the\n'
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
'assigned value.\n'
|
'| Attribute | '
|
||||||
|
'Meaning |\n'
|
||||||
|
'|====================================================|====================================================|\n'
|
||||||
|
'| function.__globals__ | A reference '
|
||||||
|
'to the "dictionary" that holds the |\n'
|
||||||
|
'| | function’s '
|
||||||
|
'global variables – the global namespace |\n'
|
||||||
|
'| | of the '
|
||||||
|
'module in which the function was defined. |\n'
|
||||||
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
|
'| function.__closure__ | "None" or a '
|
||||||
|
'"tuple" of cells that contain bindings |\n'
|
||||||
|
'| | for the '
|
||||||
|
'function’s free variables. A cell object |\n'
|
||||||
|
'| | has the '
|
||||||
|
'attribute "cell_contents". This can be |\n'
|
||||||
|
'| | used to get '
|
||||||
|
'the value of the cell, as well as set |\n'
|
||||||
|
'| | the '
|
||||||
|
'value. |\n'
|
||||||
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
|
'\n'
|
||||||
|
'\n'
|
||||||
|
'Special writable attributes\n'
|
||||||
|
'~~~~~~~~~~~~~~~~~~~~~~~~~~~\n'
|
||||||
|
'\n'
|
||||||
|
'Most of these attributes check the type of the assigned value:\n'
|
||||||
|
'\n'
|
||||||
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
|
'| Attribute | '
|
||||||
|
'Meaning |\n'
|
||||||
|
'|====================================================|====================================================|\n'
|
||||||
|
'| function.__doc__ | The '
|
||||||
|
'function’s documentation string, or "None" if |\n'
|
||||||
|
'| | unavailable. '
|
||||||
|
'Not inherited by subclasses. |\n'
|
||||||
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
|
'| function.__name__ | The '
|
||||||
|
'function’s name. See also: "__name__ |\n'
|
||||||
|
'| | '
|
||||||
|
'attributes". |\n'
|
||||||
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
|
'| function.__qualname__ | The '
|
||||||
|
'function’s *qualified name*. See also: |\n'
|
||||||
|
'| | '
|
||||||
|
'"__qualname__ attributes". New in version 3.3. |\n'
|
||||||
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
|
'| function.__module__ | The name of '
|
||||||
|
'the module the function was defined |\n'
|
||||||
|
'| | in, or '
|
||||||
|
'"None" if unavailable. |\n'
|
||||||
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
|
'| function.__defaults__ | A "tuple" '
|
||||||
|
'containing default *parameter* values |\n'
|
||||||
|
'| | for those '
|
||||||
|
'parameters that have defaults, or "None" |\n'
|
||||||
|
'| | if no '
|
||||||
|
'parameters have a default value. |\n'
|
||||||
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
|
'| function.__code__ | The code '
|
||||||
|
'object representing the compiled function |\n'
|
||||||
|
'| | '
|
||||||
|
'body. |\n'
|
||||||
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
|
'| function.__dict__ | The '
|
||||||
|
'namespace supporting arbitrary function |\n'
|
||||||
|
'| | attributes. '
|
||||||
|
'See also: "__dict__ attributes". |\n'
|
||||||
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
|
'| function.__annotations__ | A '
|
||||||
|
'"dictionary" containing annotations of |\n'
|
||||||
|
'| | '
|
||||||
|
'*parameters*. The keys of the dictionary are the |\n'
|
||||||
|
'| | parameter '
|
||||||
|
'names, and "\'return\'" for the return |\n'
|
||||||
|
'| | annotation, '
|
||||||
|
'if provided. See also: Annotations |\n'
|
||||||
|
'| | Best '
|
||||||
|
'Practices. |\n'
|
||||||
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
|
'| function.__kwdefaults__ | A '
|
||||||
|
'"dictionary" containing defaults for keyword- |\n'
|
||||||
|
'| | only '
|
||||||
|
'*parameters*. |\n'
|
||||||
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
|
'| function.__type_params__ | A "tuple" '
|
||||||
|
'containing the type parameters of a |\n'
|
||||||
|
'| | generic '
|
||||||
|
'function. New in version 3.12. |\n'
|
||||||
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
'\n'
|
'\n'
|
||||||
'Function objects also support getting and setting arbitrary\n'
|
'Function objects also support getting and setting arbitrary\n'
|
||||||
'attributes, which can be used, for example, to attach metadata to\n'
|
'attributes, which can be used, for example, to attach metadata to\n'
|
||||||
'functions. Regular attribute dot-notation is used to get and set '
|
'functions. Regular attribute dot-notation is used to get and set '
|
||||||
'such\n'
|
'such\n'
|
||||||
'attributes. *Note that the current implementation only supports\n'
|
'attributes.\n'
|
||||||
'function attributes on user-defined functions. Function attributes '
|
|
||||||
'on\n'
|
|
||||||
'built-in functions may be supported in the future.*\n'
|
|
||||||
'\n'
|
'\n'
|
||||||
'A cell object has the attribute "cell_contents". This can be used '
|
'**CPython implementation detail:** CPython’s current '
|
||||||
'to\n'
|
'implementation\n'
|
||||||
'get the value of the cell, as well as set the value.\n'
|
'only supports function attributes on user-defined functions. '
|
||||||
|
'Function\n'
|
||||||
|
'attributes on built-in functions may be supported in the future.\n'
|
||||||
'\n'
|
'\n'
|
||||||
'Additional information about a function’s definition can be '
|
'Additional information about a function’s definition can be '
|
||||||
'retrieved\n'
|
'retrieved\n'
|
||||||
'from its code object; see the description of internal types below. '
|
'from its code object (accessible via the "__code__" attribute).\n'
|
||||||
'The\n'
|
|
||||||
'"cell" type can be accessed in the "types" module.\n'
|
|
||||||
'\n'
|
'\n'
|
||||||
'\n'
|
'\n'
|
||||||
'Instance methods\n'
|
'Instance methods\n'
|
||||||
|
@ -14043,14 +14036,34 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'any\n'
|
'any\n'
|
||||||
'callable object (normally a user-defined function).\n'
|
'callable object (normally a user-defined function).\n'
|
||||||
'\n'
|
'\n'
|
||||||
'Special read-only attributes: "__self__" is the class instance '
|
'Special read-only attributes:\n'
|
||||||
'object,\n'
|
'\n'
|
||||||
'"__func__" is the function object; "__doc__" is the method’s\n'
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
'documentation (same as "__func__.__doc__"); "__name__" is the '
|
'| method.__self__ | Refers to '
|
||||||
'method\n'
|
'the class instance object to which the |\n'
|
||||||
'name (same as "__func__.__name__"); "__module__" is the name of '
|
'| | method is '
|
||||||
'the\n'
|
'bound |\n'
|
||||||
'module the method was defined in, or "None" if unavailable.\n'
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
|
'| method.__func__ | Refers to '
|
||||||
|
'the original function object |\n'
|
||||||
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
|
'| method.__doc__ | The method’s '
|
||||||
|
'documentation (same as |\n'
|
||||||
|
'| | '
|
||||||
|
'"method.__func__.__doc__"). A "string" if the |\n'
|
||||||
|
'| | original '
|
||||||
|
'function had a docstring, else "None". |\n'
|
||||||
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
|
'| method.__name__ | The name of '
|
||||||
|
'the method (same as |\n'
|
||||||
|
'| | '
|
||||||
|
'"method.__func__.__name__") |\n'
|
||||||
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
|
'| method.__module__ | The name of '
|
||||||
|
'the module the method was defined in, |\n'
|
||||||
|
'| | or "None" if '
|
||||||
|
'unavailable. |\n'
|
||||||
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
'\n'
|
'\n'
|
||||||
'Methods also support accessing (but not setting) the arbitrary\n'
|
'Methods also support accessing (but not setting) the arbitrary\n'
|
||||||
'function attributes on the underlying function object.\n'
|
'function attributes on the underlying function object.\n'
|
||||||
|
@ -14059,24 +14072,20 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'attribute\n'
|
'attribute\n'
|
||||||
'of a class (perhaps via an instance of that class), if that '
|
'of a class (perhaps via an instance of that class), if that '
|
||||||
'attribute\n'
|
'attribute\n'
|
||||||
'is a user-defined function object or a class method object.\n'
|
'is a user-defined function object or a "classmethod" object.\n'
|
||||||
'\n'
|
'\n'
|
||||||
'When an instance method object is created by retrieving a '
|
'When an instance method object is created by retrieving a '
|
||||||
'user-defined\n'
|
'user-defined\n'
|
||||||
'function object from a class via one of its instances, its '
|
'function object from a class via one of its instances, its '
|
||||||
'"__self__"\n'
|
'"__self__"\n'
|
||||||
'attribute is the instance, and the method object is said to be '
|
'attribute is the instance, and the method object is said to be\n'
|
||||||
'bound.\n'
|
'*bound*. The new method’s "__func__" attribute is the original\n'
|
||||||
'The new method’s "__func__" attribute is the original function '
|
'function object.\n'
|
||||||
'object.\n'
|
|
||||||
'\n'
|
'\n'
|
||||||
'When an instance method object is created by retrieving a class '
|
'When an instance method object is created by retrieving a\n'
|
||||||
'method\n'
|
'"classmethod" object from a class or instance, its "__self__"\n'
|
||||||
'object from a class or instance, its "__self__" attribute is the '
|
'attribute is the class itself, and its "__func__" attribute is the\n'
|
||||||
'class\n'
|
'function object underlying the class method.\n'
|
||||||
'itself, and its "__func__" attribute is the function object '
|
|
||||||
'underlying\n'
|
|
||||||
'the class method.\n'
|
|
||||||
'\n'
|
'\n'
|
||||||
'When an instance method object is called, the underlying function\n'
|
'When an instance method object is called, the underlying function\n'
|
||||||
'("__func__") is called, inserting the class instance ("__self__") '
|
'("__func__") is called, inserting the class instance ("__self__") '
|
||||||
|
@ -14087,7 +14096,7 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'of\n'
|
'of\n'
|
||||||
'"C", calling "x.f(1)" is equivalent to calling "C.f(x, 1)".\n'
|
'"C", calling "x.f(1)" is equivalent to calling "C.f(x, 1)".\n'
|
||||||
'\n'
|
'\n'
|
||||||
'When an instance method object is derived from a class method '
|
'When an instance method object is derived from a "classmethod" '
|
||||||
'object,\n'
|
'object,\n'
|
||||||
'the “class instance” stored in "__self__" will actually be the '
|
'the “class instance” stored in "__self__" will actually be the '
|
||||||
'class\n'
|
'class\n'
|
||||||
|
@ -14175,13 +14184,18 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'of built-in functions are "len()" and "math.sin()" ("math" is a\n'
|
'of built-in functions are "len()" and "math.sin()" ("math" is a\n'
|
||||||
'standard built-in module). The number and type of the arguments '
|
'standard built-in module). The number and type of the arguments '
|
||||||
'are\n'
|
'are\n'
|
||||||
'determined by the C function. Special read-only attributes: '
|
'determined by the C function. Special read-only attributes:\n'
|
||||||
'"__doc__"\n'
|
'\n'
|
||||||
'is the function’s documentation string, or "None" if unavailable;\n'
|
'* "__doc__" is the function’s documentation string, or "None" if\n'
|
||||||
'"__name__" is the function’s name; "__self__" is set to "None" '
|
' unavailable. See "function.__doc__".\n'
|
||||||
'(but\n'
|
'\n'
|
||||||
'see the next item); "__module__" is the name of the module the\n'
|
'* "__name__" is the function’s name. See "function.__name__".\n'
|
||||||
'function was defined in or "None" if unavailable.\n'
|
'\n'
|
||||||
|
'* "__self__" is set to "None" (but see the next item).\n'
|
||||||
|
'\n'
|
||||||
|
'* "__module__" is the name of the module the function was defined '
|
||||||
|
'in\n'
|
||||||
|
' or "None" if unavailable. See "function.__module__".\n'
|
||||||
'\n'
|
'\n'
|
||||||
'\n'
|
'\n'
|
||||||
'Built-in methods\n'
|
'Built-in methods\n'
|
||||||
|
@ -14193,7 +14207,9 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'argument. An example of a built-in method is "alist.append()",\n'
|
'argument. An example of a built-in method is "alist.append()",\n'
|
||||||
'assuming *alist* is a list object. In this case, the special '
|
'assuming *alist* is a list object. In this case, the special '
|
||||||
'read-only\n'
|
'read-only\n'
|
||||||
'attribute "__self__" is set to the object denoted by *alist*.\n'
|
'attribute "__self__" is set to the object denoted by *alist*. (The\n'
|
||||||
|
'attribute has the same semantics as it does with "other instance\n'
|
||||||
|
'methods".)\n'
|
||||||
'\n'
|
'\n'
|
||||||
'\n'
|
'\n'
|
||||||
'Classes\n'
|
'Classes\n'
|
||||||
|
@ -14225,16 +14241,15 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'statement, or by calling functions such as '
|
'statement, or by calling functions such as '
|
||||||
'"importlib.import_module()"\n'
|
'"importlib.import_module()"\n'
|
||||||
'and built-in "__import__()". A module object has a namespace\n'
|
'and built-in "__import__()". A module object has a namespace\n'
|
||||||
'implemented by a dictionary object (this is the dictionary '
|
'implemented by a "dictionary" object (this is the dictionary\n'
|
||||||
'referenced\n'
|
'referenced by the "__globals__" attribute of functions defined in '
|
||||||
'by the "__globals__" attribute of functions defined in the '
|
'the\n'
|
||||||
'module).\n'
|
'module). Attribute references are translated to lookups in this\n'
|
||||||
'Attribute references are translated to lookups in this dictionary,\n'
|
'dictionary, e.g., "m.x" is equivalent to "m.__dict__["x"]". A '
|
||||||
'e.g., "m.x" is equivalent to "m.__dict__["x"]". A module object '
|
'module\n'
|
||||||
'does\n'
|
'object does not contain the code object used to initialize the '
|
||||||
'not contain the code object used to initialize the module (since '
|
'module\n'
|
||||||
'it\n'
|
'(since it isn’t needed once the initialization is done).\n'
|
||||||
'isn’t needed once the initialization is done).\n'
|
|
||||||
'\n'
|
'\n'
|
||||||
'Attribute assignment updates the module’s namespace dictionary, '
|
'Attribute assignment updates the module’s namespace dictionary, '
|
||||||
'e.g.,\n'
|
'e.g.,\n'
|
||||||
|
@ -14308,14 +14323,13 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'a\n'
|
'a\n'
|
||||||
'class method object, it is transformed into an instance method '
|
'class method object, it is transformed into an instance method '
|
||||||
'object\n'
|
'object\n'
|
||||||
'whose "__self__" attribute is "C". When it would yield a static\n'
|
'whose "__self__" attribute is "C". When it would yield a\n'
|
||||||
'method object, it is transformed into the object wrapped by the '
|
'"staticmethod" object, it is transformed into the object wrapped '
|
||||||
'static\n'
|
'by\n'
|
||||||
'method object. See section Implementing Descriptors for another way '
|
'the static method object. See section Implementing Descriptors for\n'
|
||||||
'in\n'
|
'another way in which attributes retrieved from a class may differ '
|
||||||
'which attributes retrieved from a class may differ from those '
|
'from\n'
|
||||||
'actually\n'
|
'those actually contained in its "__dict__".\n'
|
||||||
'contained in its "__dict__".\n'
|
|
||||||
'\n'
|
'\n'
|
||||||
'Class attribute assignments update the class’s dictionary, never '
|
'Class attribute assignments update the class’s dictionary, never '
|
||||||
'the\n'
|
'the\n'
|
||||||
|
@ -14568,8 +14582,8 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'undefined.\n'
|
'undefined.\n'
|
||||||
'\n'
|
'\n'
|
||||||
'\n'
|
'\n'
|
||||||
'The "co_positions()" method\n'
|
'Methods on code objects\n'
|
||||||
'~~~~~~~~~~~~~~~~~~~~~~~~~~~\n'
|
'~~~~~~~~~~~~~~~~~~~~~~~\n'
|
||||||
'\n'
|
'\n'
|
||||||
'codeobject.co_positions()\n'
|
'codeobject.co_positions()\n'
|
||||||
'\n'
|
'\n'
|
||||||
|
@ -14617,14 +14631,63 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'the\n'
|
'the\n'
|
||||||
' "PYTHONNODEBUGRANGES" environment variable can be used.\n'
|
' "PYTHONNODEBUGRANGES" environment variable can be used.\n'
|
||||||
'\n'
|
'\n'
|
||||||
|
'codeobject.co_lines()\n'
|
||||||
|
'\n'
|
||||||
|
' Returns an iterator that yields information about successive '
|
||||||
|
'ranges\n'
|
||||||
|
' of *bytecode*s. Each item yielded is a "(start, end, lineno)"\n'
|
||||||
|
' "tuple":\n'
|
||||||
|
'\n'
|
||||||
|
' * "start" (an "int") represents the offset (inclusive) of the '
|
||||||
|
'start\n'
|
||||||
|
' of the *bytecode* range\n'
|
||||||
|
'\n'
|
||||||
|
' * "end" (an "int") represents the offset (exclusive) of the end '
|
||||||
|
'of\n'
|
||||||
|
' the *bytecode* range\n'
|
||||||
|
'\n'
|
||||||
|
' * "lineno" is an "int" representing the line number of the\n'
|
||||||
|
' *bytecode* range, or "None" if the bytecodes in the given '
|
||||||
|
'range\n'
|
||||||
|
' have no line number\n'
|
||||||
|
'\n'
|
||||||
|
' The items yielded will have the following properties:\n'
|
||||||
|
'\n'
|
||||||
|
' * The first range yielded will have a "start" of 0.\n'
|
||||||
|
'\n'
|
||||||
|
' * The "(start, end)" ranges will be non-decreasing and '
|
||||||
|
'consecutive.\n'
|
||||||
|
' That is, for any pair of "tuple"s, the "start" of the second '
|
||||||
|
'will\n'
|
||||||
|
' be equal to the "end" of the first.\n'
|
||||||
|
'\n'
|
||||||
|
' * No range will be backwards: "end >= start" for all triples.\n'
|
||||||
|
'\n'
|
||||||
|
' * The last "tuple" yielded will have "end" equal to the size of '
|
||||||
|
'the\n'
|
||||||
|
' *bytecode*.\n'
|
||||||
|
'\n'
|
||||||
|
' Zero-width ranges, where "start == end", are allowed. '
|
||||||
|
'Zero-width\n'
|
||||||
|
' ranges are used for lines that are present in the source code, '
|
||||||
|
'but\n'
|
||||||
|
' have been eliminated by the *bytecode* compiler.\n'
|
||||||
|
'\n'
|
||||||
|
' New in version 3.10.\n'
|
||||||
|
'\n'
|
||||||
|
' See also:\n'
|
||||||
|
'\n'
|
||||||
|
' **PEP 626** - Precise line numbers for debugging and other '
|
||||||
|
'tools.\n'
|
||||||
|
' The PEP that introduced the "co_lines()" method.\n'
|
||||||
|
'\n'
|
||||||
'\n'
|
'\n'
|
||||||
'Frame objects\n'
|
'Frame objects\n'
|
||||||
'-------------\n'
|
'-------------\n'
|
||||||
'\n'
|
'\n'
|
||||||
'Frame objects represent execution frames. They may occur in '
|
'Frame objects represent execution frames. They may occur in '
|
||||||
'traceback\n'
|
'traceback\n'
|
||||||
'objects (see below), and are also passed to registered trace\n'
|
'objects, and are also passed to registered trace functions.\n'
|
||||||
'functions.\n'
|
|
||||||
'\n'
|
'\n'
|
||||||
'\n'
|
'\n'
|
||||||
'Special read-only attributes\n'
|
'Special read-only attributes\n'
|
||||||
|
@ -14737,11 +14800,14 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'Traceback objects\n'
|
'Traceback objects\n'
|
||||||
'-----------------\n'
|
'-----------------\n'
|
||||||
'\n'
|
'\n'
|
||||||
'Traceback objects represent a stack trace of an exception. A\n'
|
'Traceback objects represent the stack trace of an exception. A\n'
|
||||||
'traceback object is implicitly created when an exception occurs, '
|
'traceback object is implicitly created when an exception occurs, '
|
||||||
'and\n'
|
'and\n'
|
||||||
'may also be explicitly created by calling "types.TracebackType".\n'
|
'may also be explicitly created by calling "types.TracebackType".\n'
|
||||||
'\n'
|
'\n'
|
||||||
|
'Changed in version 3.7: Traceback objects can now be explicitly\n'
|
||||||
|
'instantiated from Python code.\n'
|
||||||
|
'\n'
|
||||||
'For implicitly created tracebacks, when the search for an '
|
'For implicitly created tracebacks, when the search for an '
|
||||||
'exception\n'
|
'exception\n'
|
||||||
'handler unwinds the execution stack, at each unwound level a '
|
'handler unwinds the execution stack, at each unwound level a '
|
||||||
|
@ -14764,30 +14830,40 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'linked\n'
|
'linked\n'
|
||||||
'to form a full stack trace.\n'
|
'to form a full stack trace.\n'
|
||||||
'\n'
|
'\n'
|
||||||
'Special read-only attributes: "tb_frame" points to the execution '
|
'Special read-only attributes:\n'
|
||||||
'frame\n'
|
'\n'
|
||||||
'of the current level; "tb_lineno" gives the line number where the\n'
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
'exception occurred; "tb_lasti" indicates the precise instruction. '
|
'| traceback.tb_frame | Points to '
|
||||||
'The\n'
|
'the execution frame of the current |\n'
|
||||||
'line number and last instruction in the traceback may differ from '
|
'| | level. '
|
||||||
|
'Accessing this attribute raises an |\n'
|
||||||
|
'| | auditing '
|
||||||
|
'event "object.__getattr__" with arguments |\n'
|
||||||
|
'| | "obj" and '
|
||||||
|
'""tb_frame"". |\n'
|
||||||
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
|
'| traceback.tb_lineno | Gives the '
|
||||||
|
'line number where the exception occurred |\n'
|
||||||
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
|
'| traceback.tb_lasti | Indicates '
|
||||||
|
'the “precise instruction”. |\n'
|
||||||
|
'+----------------------------------------------------+----------------------------------------------------+\n'
|
||||||
|
'\n'
|
||||||
|
'The line number and last instruction in the traceback may differ '
|
||||||
|
'from\n'
|
||||||
|
'the line number of its frame object if the exception occurred in a\n'
|
||||||
|
'"try" statement with no matching except clause or with a "finally"\n'
|
||||||
|
'clause.\n'
|
||||||
|
'\n'
|
||||||
|
'traceback.tb_next\n'
|
||||||
|
'\n'
|
||||||
|
' The special writable attribute "tb_next" is the next level in '
|
||||||
'the\n'
|
'the\n'
|
||||||
'line number of its frame object if the exception occurred in a '
|
' stack trace (towards the frame where the exception occurred), '
|
||||||
'"try"\n'
|
'or\n'
|
||||||
'statement with no matching except clause or with a finally clause.\n'
|
' "None" if there is no next level.\n'
|
||||||
'\n'
|
'\n'
|
||||||
'Accessing "tb_frame" raises an auditing event "object.__getattr__"\n'
|
' Changed in version 3.7: This attribute is now writable\n'
|
||||||
'with arguments "obj" and ""tb_frame"".\n'
|
|
||||||
'\n'
|
|
||||||
'Special writable attribute: "tb_next" is the next level in the '
|
|
||||||
'stack\n'
|
|
||||||
'trace (towards the frame where the exception occurred), or "None" '
|
|
||||||
'if\n'
|
|
||||||
'there is no next level.\n'
|
|
||||||
'\n'
|
|
||||||
'Changed in version 3.7: Traceback objects can now be explicitly\n'
|
|
||||||
'instantiated from Python code, and the "tb_next" attribute of '
|
|
||||||
'existing\n'
|
|
||||||
'instances can be updated.\n'
|
|
||||||
'\n'
|
'\n'
|
||||||
'\n'
|
'\n'
|
||||||
'Slice objects\n'
|
'Slice objects\n'
|
||||||
|
@ -14844,8 +14920,8 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'around another object that alters the way in which that object is\n'
|
'around another object that alters the way in which that object is\n'
|
||||||
'retrieved from classes and class instances. The behaviour of class\n'
|
'retrieved from classes and class instances. The behaviour of class\n'
|
||||||
'method objects upon such retrieval is described above, under '
|
'method objects upon such retrieval is described above, under '
|
||||||
'“User-\n'
|
'“instance\n'
|
||||||
'defined methods”. Class method objects are created by the built-in\n'
|
'methods”. Class method objects are created by the built-in\n'
|
||||||
'"classmethod()" constructor.\n',
|
'"classmethod()" constructor.\n',
|
||||||
'typesfunctions': 'Functions\n'
|
'typesfunctions': 'Functions\n'
|
||||||
'*********\n'
|
'*********\n'
|
||||||
|
@ -15364,7 +15440,7 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'notation.\n'
|
'notation.\n'
|
||||||
'There are two flavors: built-in methods (such as "append()" '
|
'There are two flavors: built-in methods (such as "append()" '
|
||||||
'on lists)\n'
|
'on lists)\n'
|
||||||
'and class instance methods. Built-in methods are described '
|
'and class instance method. Built-in methods are described '
|
||||||
'with the\n'
|
'with the\n'
|
||||||
'types that support them.\n'
|
'types that support them.\n'
|
||||||
'\n'
|
'\n'
|
||||||
|
@ -15372,8 +15448,8 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'namespace)\n'
|
'namespace)\n'
|
||||||
'through an instance, you get a special object: a *bound '
|
'through an instance, you get a special object: a *bound '
|
||||||
'method* (also\n'
|
'method* (also\n'
|
||||||
'called *instance method*) object. When called, it will add '
|
'called instance method) object. When called, it will add the '
|
||||||
'the "self"\n'
|
'"self"\n'
|
||||||
'argument to the argument list. Bound methods have two '
|
'argument to the argument list. Bound methods have two '
|
||||||
'special read-\n'
|
'special read-\n'
|
||||||
'only attributes: "m.__self__" is the object on which the '
|
'only attributes: "m.__self__" is the object on which the '
|
||||||
|
@ -15388,7 +15464,7 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'arbitrary\n'
|
'arbitrary\n'
|
||||||
'attributes. However, since method attributes are actually '
|
'attributes. However, since method attributes are actually '
|
||||||
'stored on\n'
|
'stored on\n'
|
||||||
'the underlying function object ("meth.__func__"), setting '
|
'the underlying function object ("method.__func__"), setting '
|
||||||
'method\n'
|
'method\n'
|
||||||
'attributes on bound methods is disallowed. Attempting to '
|
'attributes on bound methods is disallowed. Attempting to '
|
||||||
'set an\n'
|
'set an\n'
|
||||||
|
@ -15413,7 +15489,7 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
' >>> c.method.whoami\n'
|
' >>> c.method.whoami\n'
|
||||||
" 'my name is method'\n"
|
" 'my name is method'\n"
|
||||||
'\n'
|
'\n'
|
||||||
'See The standard type hierarchy for more information.\n',
|
'See Instance methods for more information.\n',
|
||||||
'typesmodules': 'Modules\n'
|
'typesmodules': 'Modules\n'
|
||||||
'*******\n'
|
'*******\n'
|
||||||
'\n'
|
'\n'
|
||||||
|
|
1096
Misc/NEWS.d/3.12.2.rst
Normal file
1096
Misc/NEWS.d/3.12.2.rst
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1 +0,0 @@
|
||||||
Do not set ipv6type when cross-compiling.
|
|
|
@ -1,2 +0,0 @@
|
||||||
The :func:`os.major`, :func:`os.makedev`, and :func:`os.minor` functions are
|
|
||||||
now available on HP-UX v3.
|
|
|
@ -1 +0,0 @@
|
||||||
Fix the build for the case that WITH_PYMALLOC_RADIX_TREE=0 set.
|
|
|
@ -1,3 +0,0 @@
|
||||||
Fixed the ``check-clean-src`` step performed on out of tree builds to detect
|
|
||||||
errant ``$(srcdir)/Python/frozen_modules/*.h`` files and recommend
|
|
||||||
appropriate source tree cleanup steps to get a working build again.
|
|
|
@ -1,3 +0,0 @@
|
||||||
Fix UnicodeEncodeError when :func:`email.message.get_payload` reads a message
|
|
||||||
with a Unicode surrogate character and the message content is not well-formed for
|
|
||||||
surrogateescape encoding. Patch by Sidney Markowitz.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix SystemError in the ``import`` statement and in ``__reduce__()`` methods
|
|
||||||
of builtin types when ``__builtins__`` is not a dict.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Correctly compute end column offsets for multiline tokens in the
|
|
||||||
:mod:`tokenize` module. Patch by Pablo Galindo
|
|
|
@ -1,7 +0,0 @@
|
||||||
Use per AST-parser state rather than global state to track recursion depth
|
|
||||||
within the AST parser to prevent potential race condition due to
|
|
||||||
simultaneous parsing.
|
|
||||||
|
|
||||||
The issue primarily showed up in 3.11 by multithreaded users of
|
|
||||||
:func:`ast.parse`. In 3.12 a change to when garbage collection can be
|
|
||||||
triggered prevented the race condition from occurring.
|
|
|
@ -1 +0,0 @@
|
||||||
Fix segfault in the compiler on with statement with 19 context managers.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix an error that was causing the parser to try to overwrite existing errors
|
|
||||||
and crashing in the process. Patch by Pablo Galindo
|
|
|
@ -1,2 +0,0 @@
|
||||||
Check for a valid ``tp_version_tag`` before performing bytecode specializations that
|
|
||||||
rely on this value being usable.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix a regression in the :mod:`codeop` module that was causing it to incorrectly
|
|
||||||
identify incomplete f-strings. Patch by Pablo Galindo
|
|
|
@ -1,5 +0,0 @@
|
||||||
Fix a :exc:`RuntimeWarning` emitted when assign an integer-like value that
|
|
||||||
is not an instance of :class:`int` to an attribute that corresponds to a C
|
|
||||||
struct member of :ref:`type <PyMemberDef-types>` T_UINT and T_ULONG. Fix a
|
|
||||||
double :exc:`RuntimeWarning` emitted when assign a negative integer value to
|
|
||||||
an attribute that corresponds to a C struct member of type T_UINT.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Changed socket type validation in :meth:`~asyncio.loop.create_datagram_endpoint` to accept all non-stream sockets.
|
|
||||||
This fixes a regression in compatibility with raw sockets.
|
|
|
@ -1,3 +0,0 @@
|
||||||
Document that the :mod:`asyncio` module contains code taken from `v0.16.0 of
|
|
||||||
the uvloop project <https://github.com/MagicStack/uvloop/tree/v0.16.0>`_, as
|
|
||||||
well as the required MIT licensing information.
|
|
|
@ -1 +0,0 @@
|
||||||
Improved markup for valid options/values for methods ttk.treeview.column and ttk.treeview.heading, and for Layouts.
|
|
|
@ -1 +0,0 @@
|
||||||
Enter the selected text when opening the "Replace" dialog.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Revise IDLE bindings so that events from mouse button 4/5 on non-X11
|
|
||||||
windowing systems (i.e. Win32 and Aqua) are not mistaken for scrolling.
|
|
|
@ -1 +0,0 @@
|
||||||
Fix processing unsaved files when quitting IDLE on macOS.
|
|
|
@ -1 +0,0 @@
|
||||||
Fix test_editor hang on macOS Catalina.
|
|
|
@ -1 +0,0 @@
|
||||||
Fix the "Help -> IDLE Doc" menu bug in 3.11.7 and 3.12.1.
|
|
|
@ -1 +0,0 @@
|
||||||
Fix rare failure of test.test_idle, in test_configdialog.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Improve the lists of features, editor key bindings, and shell key bingings
|
|
||||||
in the IDLE doc.
|
|
|
@ -1 +0,0 @@
|
||||||
In idlelib code, stop redefining built-ins 'dict' and 'object'.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fixed a class inheritance issue that can cause segfaults when deriving two or more levels of subclasses from a base class of Structure or Union.
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix some error messages for invalid ISO format string combinations in ``strptime()`` that referred to directives not contained in the format string.
|
|
||||||
Patch by Gordon P. Hemsley.
|
|
|
@ -1,4 +0,0 @@
|
||||||
:func:`shutil.move` now moves a symlink into a directory when that
|
|
||||||
directory is the target of the symlink. This provides the same behavior as
|
|
||||||
the mv shell command. The previous behavior raised an exception. Patch by
|
|
||||||
Jeffrey Kintscher.
|
|
|
@ -1,2 +0,0 @@
|
||||||
:class:`io.TextIOWrapper` now correctly handles the decoding buffer after
|
|
||||||
``read()`` and ``write()``.
|
|
|
@ -1,3 +0,0 @@
|
||||||
When :func:`os.fork` is called from a foreign thread (aka ``_DummyThread``),
|
|
||||||
the type of the thread in a child process is changed to ``_MainThread``.
|
|
||||||
Also changed its name and daemonic status, it can be now joined.
|
|
|
@ -1,3 +0,0 @@
|
||||||
Fix null pointer dereference in :func:`lzma._decode_filter_properties`
|
|
||||||
due to improper handling of BCJ filters with properties of zero length.
|
|
||||||
Patch by Radislav Chugunov.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Allow :class:`ctypes.Union` to be nested in :class:`ctypes.Structure` when
|
|
||||||
the system endianness is the opposite of the classes.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix stacklevel in ``InvalidTZPathWarning`` during :mod:`zoneinfo` module
|
|
||||||
import.
|
|
|
@ -1 +0,0 @@
|
||||||
Set unixfrom envelope in :class:`mailbox.mbox` and :class:`mailbox.MMDF`.
|
|
|
@ -1,3 +0,0 @@
|
||||||
Fix race condition in :mod:`trace`. Instead of checking if a directory
|
|
||||||
exists and creating it, directly call :func:`os.makedirs` with the kwarg
|
|
||||||
``exist_ok=True``.
|
|
|
@ -1,6 +0,0 @@
|
||||||
On Windows, closing the connection writer when cleaning up a broken
|
|
||||||
:class:`multiprocessing.Queue` queue is now done for all queues, rather than
|
|
||||||
only in :mod:`concurrent.futures` manager thread.
|
|
||||||
This can prevent a deadlock when a ``multiprocessing`` worker process terminates
|
|
||||||
without cleaning up.
|
|
||||||
This completes the backport of patches by Victor Stinner and Serhiy Storchaka.
|
|
|
@ -1,3 +0,0 @@
|
||||||
Protect :mod:`zipfile` from "quoted-overlap" zipbomb. It now raises
|
|
||||||
BadZipFile when try to read an entry that overlaps with other entry or
|
|
||||||
central directory.
|
|
|
@ -1 +0,0 @@
|
||||||
Show the Tcl/Tk patchlevel (rather than version) in :meth:`tkinter._test`.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix crash during garbage collection of the :class:`io.BytesIO` buffer
|
|
||||||
object.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix a regression caused by a fix to gh-93162 whereby you couldn't configure
|
|
||||||
a :class:`QueueHandler` without specifying handlers.
|
|
|
@ -1 +0,0 @@
|
||||||
Improve handling of pdb convenience variables to avoid replacing string contents.
|
|
|
@ -1,3 +0,0 @@
|
||||||
Fix a crash in :func:`socket.if_indextoname` with specific value (UINT_MAX).
|
|
||||||
Fix an integer overflow in :func:`socket.if_indextoname` on 64-bit
|
|
||||||
non-Windows platforms.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Ignore FileNotFoundError when remove a temporary directory in the
|
|
||||||
multiprocessing finalizer.
|
|
|
@ -1 +0,0 @@
|
||||||
Fix ctypes structs with array on PPC64LE platform by setting ``MAX_STRUCT_SIZE`` to 64 in stgdict. Patch by Diego Russo.
|
|
|
@ -1,3 +0,0 @@
|
||||||
:func:`signal.signal` and :func:`signal.getsignal` no longer call ``repr`` on
|
|
||||||
callable handlers. :func:`asyncio.run` and :meth:`asyncio.Runner.run` no longer
|
|
||||||
call ``repr`` on the task results. Patch by Yilei Yang.
|
|
|
@ -1 +0,0 @@
|
||||||
Detect line numbers of properties in doctests.
|
|
|
@ -1,6 +0,0 @@
|
||||||
Fix :func:`shutil.copymode` and :func:`shutil.copystat` on Windows.
|
|
||||||
Previously they worked differenly if *dst* is a symbolic link:
|
|
||||||
they modified the permission bits of *dst* itself
|
|
||||||
rather than the file it points to if *follow_symlinks* is true or *src* is
|
|
||||||
not a symbolic link, and did not modify the permission bits if
|
|
||||||
*follow_symlinks* is false and *src* is a symbolic link.
|
|
|
@ -1,3 +0,0 @@
|
||||||
Make ``http.client.HTTPResponse.read1`` and
|
|
||||||
``http.client.HTTPResponse.readline`` close IO after reading all data when
|
|
||||||
content length is known. Patch by Illia Volochii.
|
|
|
@ -1 +0,0 @@
|
||||||
Update bundled pip to 23.3.2.
|
|
|
@ -1 +0,0 @@
|
||||||
Fix an ``AttributeError`` during asyncio SSL protocol aborts in SSL-over-SSL scenarios.
|
|
|
@ -1 +0,0 @@
|
||||||
Fix rendering tracebacks for exceptions with a broken ``__getattr__``.
|
|
|
@ -1,4 +0,0 @@
|
||||||
Fix regression in Python 3.12 where :class:`~typing.Protocol` classes that
|
|
||||||
were not marked as :func:`runtime-checkable <typing.runtime_checkable>`
|
|
||||||
would be unnecessarily introspected, potentially causing exceptions to be
|
|
||||||
raised if the protocol had problematic members. Patch by Alex Waygood.
|
|
|
@ -1 +0,0 @@
|
||||||
Fix import of :mod:`unittest.mock` when CPython is built without docstrings.
|
|
|
@ -1,5 +0,0 @@
|
||||||
Fix segfaults in the ``_elementtree`` module.
|
|
||||||
Fix first segfault during deallocation of ``_elementtree.XMLParser`` instances by keeping strong reference
|
|
||||||
to ``pyexpat`` module in module state for capsule lifetime.
|
|
||||||
Fix second segfault which happens in the same deallocation process by keeping strong reference
|
|
||||||
to ``_elementtree`` module in ``XMLParser`` structure for ``_elementtree`` module lifetime.
|
|
|
@ -1 +0,0 @@
|
||||||
Fix multiprocessing logger for ``%(filename)s``.
|
|
|
@ -1,6 +0,0 @@
|
||||||
When a second reference to a string appears in the input to :mod:`pickle`,
|
|
||||||
and the Python implementation is in use,
|
|
||||||
we are guaranteed that a single copy gets pickled
|
|
||||||
and a single object is shared when reloaded.
|
|
||||||
Previously, in protocol 0, when a string contained certain characters
|
|
||||||
(e.g. newline) it resulted in duplicate objects.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Make sure that ``webbrowser.MacOSXOSAScript`` sends ``webbrowser.open``
|
|
||||||
audit event.
|
|
|
@ -1,4 +0,0 @@
|
||||||
Increase the backlog for :class:`multiprocessing.connection.Listener` objects created
|
|
||||||
by :mod:`multiprocessing.manager` and :mod:`multiprocessing.resource_sharer` to
|
|
||||||
significantly reduce the risk of getting a connection refused error when creating
|
|
||||||
a :class:`multiprocessing.connection.Connection` to them.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix resource warnings for unclosed files in :mod:`pickle` and
|
|
||||||
:mod:`pickletools` command line interfaces.
|
|
|
@ -1,5 +0,0 @@
|
||||||
In :meth:`asyncio.StreamReaderProtocol.connection_made`, there is callback
|
|
||||||
that logs an error if the task wrapping the "connected callback" fails. This
|
|
||||||
callback would itself fail if the task was cancelled. Prevent this by
|
|
||||||
checking whether the task was cancelled first. If so, close the transport
|
|
||||||
but don't log an error.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix :exc:`UnicodeEncodeError` in :mod:`email` when re-fold lines that
|
|
||||||
contain unknown-8bit encoded part followed by non-unknown-8bit encoded part.
|
|
|
@ -1,3 +0,0 @@
|
||||||
Restore the ability for :mod:`zipfile` to ``extractall`` from zip files with
|
|
||||||
a "/" directory entry in them as is commonly added to zips by some wiki or
|
|
||||||
bug tracker data exporters.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Silence unraisable AttributeError when warnings are emitted during Python
|
|
||||||
finalization.
|
|
|
@ -1,3 +0,0 @@
|
||||||
unittest runner: Don't exit 5 if tests were skipped. The intention of
|
|
||||||
exiting 5 was to detect issues where the test suite wasn't discovered at
|
|
||||||
all. If we skipped tests, it was correctly discovered.
|
|
|
@ -1 +0,0 @@
|
||||||
Fix :mod:`tkinter` method ``winfo_pathname()`` on 64-bit Windows.
|
|
|
@ -1,7 +0,0 @@
|
||||||
Fix the behavior of ``tag_unbind()`` methods of :class:`tkinter.Text` and
|
|
||||||
:class:`tkinter.Canvas` classes with three arguments. Previously,
|
|
||||||
``widget.tag_unbind(tag, sequence, funcid)`` destroyed the current binding
|
|
||||||
for *sequence*, leaving *sequence* unbound, and deleted the *funcid*
|
|
||||||
command. Now it removes only *funcid* from the binding for *sequence*,
|
|
||||||
keeping other commands, and deletes the *funcid* command. It leaves
|
|
||||||
*sequence* unbound only if *funcid* was the last bound command.
|
|
|
@ -1 +0,0 @@
|
||||||
Fixed a bug in :class:`fractions.Fraction` where an invalid string using ``d`` in the decimals part creates a different error compared to other invalid letters/characters. Patch by Jeremiah Gabriel Pascual.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix possible :exc:`OverflowError` in :meth:`socket.socket.sendfile` when pass
|
|
||||||
*count* larger than 2 GiB on 32-bit platform.
|
|
|
@ -1,3 +0,0 @@
|
||||||
Fix a reference leak in
|
|
||||||
:class:`asyncio.selector_events.BaseSelectorEventLoop` when SSL handshakes
|
|
||||||
fail. Patch contributed by Jamie Phan.
|
|
|
@ -1 +0,0 @@
|
||||||
Enum: correctly handle tuple subclasses in custom ``__new__``.
|
|
|
@ -1,3 +0,0 @@
|
||||||
:exc:`OSError` raised when run a subprocess now only has *filename*
|
|
||||||
attribute set to *cwd* if the error was caused by a failed attempt to change
|
|
||||||
the current directory.
|
|
|
@ -1,4 +0,0 @@
|
||||||
Avoid reference cycle in ElementTree.iterparse. The iterator returned by
|
|
||||||
``ElementTree.iterparse`` may hold on to a file descriptor. The reference
|
|
||||||
cycle prevented prompt clean-up of the file descriptor if the returned
|
|
||||||
iterator was not exhausted.
|
|
|
@ -1,4 +0,0 @@
|
||||||
The :func:`tty.setcbreak` and new :func:`tty.cfmakecbreak` no longer clears
|
|
||||||
the terminal input ICRLF flag. This fixes a regression introduced in 3.12
|
|
||||||
that no longer matched how OSes define cbreak mode in their ``stty(1)``
|
|
||||||
manual pages.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Dismiss the :exc:`FileNotFound` error in :func:`ctypes.util.find_library` and
|
|
||||||
just return ``None`` on Linux.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Ignore an :exc:`OSError` in :meth:`asyncio.BaseEventLoop.create_server` when
|
|
||||||
IPv6 is available but the interface cannot actually support it.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Revert changes in :gh:`106584` which made calls of ``TestResult`` methods
|
|
||||||
``startTest()`` and ``stopTest()`` unbalanced.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Make the result of :func:`termios.tcgetattr` reproducible on Alpine Linux.
|
|
||||||
Previously it could leave a random garbage in some fields.
|
|
|
@ -1,2 +0,0 @@
|
||||||
:meth:`email.policy.EmailPolicy.fold` now always encodes non-ASCII characters
|
|
||||||
in headers if :attr:`~email.policy.EmailPolicy.utf8` is false.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix a leak of open socket in rare cases when error occurred in
|
|
||||||
:class:`ssl.SSLSocket` creation.
|
|
|
@ -1 +0,0 @@
|
||||||
Fix ctypes structs with array on Windows ARM64 platform by setting ``MAX_STRUCT_SIZE`` to 32 in stgdict. Patch by Diego Russo
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix support of explicit option value "--" in :mod:`argparse` (e.g.
|
|
||||||
``--option=--``).
|
|
|
@ -1,2 +0,0 @@
|
||||||
:mod:`tarfile` no longer ignores errors when trying to extract a directory on
|
|
||||||
top of a file.
|
|
|
@ -1 +0,0 @@
|
||||||
Update bundled pip to 24.0
|
|
|
@ -1 +0,0 @@
|
||||||
Skip ``.pth`` files with names starting with a dot or hidden file attribute.
|
|
|
@ -1 +0,0 @@
|
||||||
Test modes that file can get with chmod() on Windows.
|
|
|
@ -1,4 +0,0 @@
|
||||||
Fix
|
|
||||||
``test.test_zipfile.test_core.TestWithDirectory.test_create_directory_with_write``
|
|
||||||
test in AIX by doing a bitwise AND of 0xFFFF on mode , so that it will be in
|
|
||||||
sync with ``zinfo.external_attr``
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix ``test_tarfile_vs_tar`` in ``test_shutil`` for macOS, where system tar
|
|
||||||
can include more information in the archive than :mod:`shutil.make_archive`.
|
|
|
@ -1,5 +0,0 @@
|
||||||
Fix a bug in Argument Clinic that generated incorrect code for methods with
|
|
||||||
no parameters that use the :ref:`METH_METHOD | METH_FASTCALL | METH_KEYWORDS
|
|
||||||
<METH_METHOD-METH_FASTCALL-METH_KEYWORDS>` calling convention. Only the
|
|
||||||
positional parameter count was checked; any keyword argument passed would be
|
|
||||||
silently accepted.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Update GitHub CI workflows to use OpenSSL 3.0.13 and multissltests to use
|
|
||||||
1.1.1w, 3.0.13, 3.1.5, and 3.2.1.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix mojibake in :class:`mmap.mmap` when using a non-ASCII *tagname* argument
|
|
||||||
on Windows.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Correctly sort and remove duplicate environment variables in
|
|
||||||
:py:func:`!_winapi.CreateProcess`.
|
|
|
@ -1,5 +0,0 @@
|
||||||
:mod:`multiprocessing`: On Windows, fix a race condition in
|
|
||||||
``Process.terminate()``: no longer set the ``returncode`` attribute to
|
|
||||||
always call ``WaitForSingleObject()`` in ``Process.wait()``. Previously,
|
|
||||||
sometimes the process was still running after ``TerminateProcess()`` even if
|
|
||||||
``GetExitCodeProcess()`` is not ``STILL_ACTIVE``. Patch by Victor Stinner.
|
|
|
@ -1,2 +0,0 @@
|
||||||
:func:`os.stat` calls were returning incorrect time values for files that
|
|
||||||
could not be accessed directly.
|
|
|
@ -1,3 +0,0 @@
|
||||||
Process privileges that are activated for creating directory junctions are
|
|
||||||
now restored afterwards, avoiding behaviour changes in other parts of the
|
|
||||||
program.
|
|
|
@ -1 +0,0 @@
|
||||||
The ``py.exe`` launcher will no longer attempt to run the Microsoft Store redirector when launching a script containing a ``/usr/bin/env`` shebang
|
|
|
@ -1 +0,0 @@
|
||||||
Update Windows builds to use zlib v1.3.1.
|
|
|
@ -1 +0,0 @@
|
||||||
Update Windows build to use OpenSSL 3.0.13.
|
|
|
@ -1,3 +0,0 @@
|
||||||
Make sure the preprocessor definitions for ``ALIGNOF_MAX_ALIGN_T``,
|
|
||||||
``SIZEOF_LONG_DOUBLE`` and ``HAVE_GCC_ASM_FOR_X64`` are correct for
|
|
||||||
Universal 2 builds on macOS.
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue