Skip to content
Snippets Groups Projects
Unverified Commit 2e49bd06 authored by Pablo Galindo's avatar Pablo Galindo
Browse files

Python 3.11.0a7

parent c1d93b64
Branches
Tags v3.11.0a7
No related merge requests found
Showing
with 1751 additions and 187 deletions
...@@ -20,10 +20,10 @@ ...@@ -20,10 +20,10 @@
#define PY_MINOR_VERSION 11 #define PY_MINOR_VERSION 11
#define PY_MICRO_VERSION 0 #define PY_MICRO_VERSION 0
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_ALPHA #define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_ALPHA
#define PY_RELEASE_SERIAL 6 #define PY_RELEASE_SERIAL 7
/* Version as a string */ /* Version as a string */
#define PY_VERSION "3.11.0a6+" #define PY_VERSION "3.11.0a7"
/*--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.
......
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Autogenerated by Sphinx on Mon Mar 7 12:29:42 2022 # Autogenerated by Sphinx on Tue Apr 5 20:53:43 2022
topics = {'assert': 'The "assert" statement\n' topics = {'assert': 'The "assert" statement\n'
'**********************\n' '**********************\n'
'\n' '\n'
...@@ -93,11 +93,7 @@ ...@@ -93,11 +93,7 @@
' optionally in parentheses, the object is assigned to that ' ' optionally in parentheses, the object is assigned to that '
'target.\n' 'target.\n'
'\n' '\n'
'* Else: The object must be an iterable with the same number of ' '* Else:\n'
'items\n'
' as there are targets in the target list, and the items are '
'assigned,\n'
' from left to right, to the corresponding targets.\n'
'\n' '\n'
' * If the target list contains one target prefixed with an ' ' * If the target list contains one target prefixed with an '
'asterisk,\n' 'asterisk,\n'
...@@ -2328,27 +2324,18 @@ ...@@ -2328,27 +2324,18 @@
' for_stmt ::= "for" target_list "in" starred_list ":" suite\n' ' for_stmt ::= "for" target_list "in" starred_list ":" suite\n'
' ["else" ":" suite]\n' ' ["else" ":" suite]\n'
'\n' '\n'
'The expression list is evaluated once; it should yield an ' 'The "starred_list" expression is evaluated once; it should yield '
'iterable\n' 'an\n'
'object. An iterator is created for the result of the ' '*iterable* object. An *iterator* is created for that iterable. '
'"starred_list".\n' 'The\n'
'The expression list can contain starred elements ("*x, *y") that ' 'first item provided by the iterator is then assigned to the '
'will\n' 'target\n'
'be unpacked in the final iterator (as when constructing a ' 'list using the standard rules for assignments (see Assignment\n'
'"tuple" or\n' 'statements), and the suite is executed. This repeats for each '
'"list" literal). The suite is then executed once for each item\n' 'item\n'
'provided by the iterator, in the order returned by the ' 'provided by the iterator. When the iterator is exhausted, the '
'iterator. Each\n' 'suite\n'
'item in turn is assigned to the target list using the standard ' 'in the "else" clause, if present, is executed, and the loop\n'
'rules\n'
'for assignments (see Assignment statements), and then the suite '
'is\n'
'executed. When the items are exhausted (which is immediately '
'when the\n'
'sequence is empty or an iterator raises a "StopIteration" '
'exception),\n'
'the suite in the "else" clause, if present, is executed, and the '
'loop\n'
'terminates.\n' 'terminates.\n'
'\n' '\n'
'A "break" statement executed in the first suite terminates the ' 'A "break" statement executed in the first suite terminates the '
...@@ -2427,11 +2414,11 @@ ...@@ -2427,11 +2414,11 @@
'resulting\n' 'resulting\n'
'object is “compatible” with the exception. An object is ' 'object is “compatible” with the exception. An object is '
'compatible\n' 'compatible\n'
'with an exception if the object is the class or a base class of ' 'with an exception if the object is the class or a *non-virtual '
'the\n' 'base\n'
'exception object, or a tuple containing an item that is the ' 'class* of the exception object, or a tuple containing an item '
'class or a\n' 'that is\n'
'base class of the exception object.\n' 'the class or a non-virtual base class of the exception object.\n'
'\n' '\n'
'If no except clause matches the exception, the search for an ' 'If no except clause matches the exception, the search for an '
'exception\n' 'exception\n'
...@@ -4461,15 +4448,17 @@ ...@@ -4461,15 +4448,17 @@
'on members\n' 'on members\n'
' of hashed collections including "set", "frozenset", and ' ' of hashed collections including "set", "frozenset", and '
'"dict".\n' '"dict".\n'
' "__hash__()" should return an integer. The only required ' ' The "__hash__()" method should return an integer. The '
'property\n' 'only required\n'
' is that objects which compare equal have the same hash ' ' property is that objects which compare equal have the '
'value; it is\n' 'same hash\n'
' advised to mix together the hash values of the ' ' value; it is advised to mix together the hash values of '
'components of the\n' 'the\n'
' object that also play a part in comparison of objects by ' ' components of the object that also play a part in '
'packing\n' 'comparison of\n'
' them into a tuple and hashing the tuple. Example:\n' ' objects by packing them into a tuple and hashing the '
'tuple.\n'
' Example:\n'
'\n' '\n'
' def __hash__(self):\n' ' def __hash__(self):\n'
' return hash((self.name, self.nick, self.color))\n' ' return hash((self.name, self.nick, self.color))\n'
...@@ -5458,11 +5447,11 @@ ...@@ -5458,11 +5447,11 @@
'clause is\n' 'clause is\n'
'selected depending on the class of the instance: it must ' 'selected depending on the class of the instance: it must '
'reference the\n' 'reference the\n'
'class of the instance or a base class thereof. The instance ' 'class of the instance or a *non-virtual base class* thereof. '
'can be\n' 'The\n'
'received by the handler and can carry additional information ' 'instance can be received by the handler and can carry '
'about the\n' 'additional\n'
'exceptional condition.\n' 'information about the exceptional condition.\n'
'\n' '\n'
'Note:\n' 'Note:\n'
'\n' '\n'
...@@ -5797,11 +5786,11 @@ ...@@ -5797,11 +5786,11 @@
'clause is\n' 'clause is\n'
'selected depending on the class of the instance: it must ' 'selected depending on the class of the instance: it must '
'reference the\n' 'reference the\n'
'class of the instance or a base class thereof. The instance ' 'class of the instance or a *non-virtual base class* thereof. '
'can be\n' 'The\n'
'received by the handler and can carry additional information ' 'instance can be received by the handler and can carry '
'about the\n' 'additional\n'
'exceptional condition.\n' 'information about the exceptional condition.\n'
'\n' '\n'
'Note:\n' 'Note:\n'
'\n' '\n'
...@@ -5901,23 +5890,13 @@ ...@@ -5901,23 +5890,13 @@
' for_stmt ::= "for" target_list "in" starred_list ":" suite\n' ' for_stmt ::= "for" target_list "in" starred_list ":" suite\n'
' ["else" ":" suite]\n' ' ["else" ":" suite]\n'
'\n' '\n'
'The expression list is evaluated once; it should yield an iterable\n' 'The "starred_list" expression is evaluated once; it should yield an\n'
'object. An iterator is created for the result of the ' '*iterable* object. An *iterator* is created for that iterable. The\n'
'"starred_list".\n' 'first item provided by the iterator is then assigned to the target\n'
'The expression list can contain starred elements ("*x, *y") that ' 'list using the standard rules for assignments (see Assignment\n'
'will\n' 'statements), and the suite is executed. This repeats for each item\n'
'be unpacked in the final iterator (as when constructing a "tuple" or\n' 'provided by the iterator. When the iterator is exhausted, the suite\n'
'"list" literal). The suite is then executed once for each item\n' 'in the "else" clause, if present, is executed, and the loop\n'
'provided by the iterator, in the order returned by the iterator. '
'Each\n'
'item in turn is assigned to the target list using the standard rules\n'
'for assignments (see Assignment statements), and then the suite is\n'
'executed. When the items are exhausted (which is immediately when '
'the\n'
'sequence is empty or an iterator raises a "StopIteration" '
'exception),\n'
'the suite in the "else" clause, if present, is executed, and the '
'loop\n'
'terminates.\n' 'terminates.\n'
'\n' '\n'
'A "break" statement executed in the first suite terminates the loop\n' 'A "break" statement executed in the first suite terminates the loop\n'
...@@ -9388,15 +9367,17 @@ ...@@ -9388,15 +9367,17 @@
'on members\n' 'on members\n'
' of hashed collections including "set", "frozenset", and ' ' of hashed collections including "set", "frozenset", and '
'"dict".\n' '"dict".\n'
' "__hash__()" should return an integer. The only required ' ' The "__hash__()" method should return an integer. The '
'property\n' 'only required\n'
' is that objects which compare equal have the same hash ' ' property is that objects which compare equal have the '
'value; it is\n' 'same hash\n'
' advised to mix together the hash values of the components ' ' value; it is advised to mix together the hash values of '
'of the\n' 'the\n'
' object that also play a part in comparison of objects by ' ' components of the object that also play a part in '
'packing\n' 'comparison of\n'
' them into a tuple and hashing the tuple. Example:\n' ' objects by packing them into a tuple and hashing the '
'tuple.\n'
' Example:\n'
'\n' '\n'
' def __hash__(self):\n' ' def __hash__(self):\n'
' return hash((self.name, self.nick, self.color))\n' ' return hash((self.name, self.nick, self.color))\n'
...@@ -10003,14 +9984,14 @@ ...@@ -10003,14 +9984,14 @@
'\n' '\n'
'Whenever a class inherits from another class, ' 'Whenever a class inherits from another class, '
'"__init_subclass__()" is\n' '"__init_subclass__()" is\n'
'called on that class. This way, it is possible to write ' 'called on the parent class. This way, it is possible to '
'classes which\n' 'write classes\n'
'change the behavior of subclasses. This is closely related ' 'which change the behavior of subclasses. This is closely '
'to class\n' 'related to\n'
'decorators, but where class decorators only affect the ' 'class decorators, but where class decorators only affect the '
'specific class\n' 'specific\n'
'they’re applied to, "__init_subclass__" solely applies to ' 'class they’re applied to, "__init_subclass__" solely applies '
'future\n' 'to future\n'
'subclasses of the class defining the method.\n' 'subclasses of the class defining the method.\n'
'\n' '\n'
'classmethod object.__init_subclass__(cls)\n' 'classmethod object.__init_subclass__(cls)\n'
...@@ -12381,67 +12362,86 @@ ...@@ -12381,67 +12362,86 @@
'subscriptions': 'Subscriptions\n' 'subscriptions': 'Subscriptions\n'
'*************\n' '*************\n'
'\n' '\n'
'Subscription of a sequence (string, tuple or list) or ' 'The subscription of an instance of a container class will '
'mapping\n' 'generally\n'
'(dictionary) object usually selects an item from the ' 'select an element from the container. The subscription of a '
'collection:\n' '*generic\n'
'class* will generally return a GenericAlias object.\n'
'\n' '\n'
' subscription ::= primary "[" expression_list "]"\n' ' subscription ::= primary "[" expression_list "]"\n'
'\n' '\n'
'When an object is subscripted, the interpreter will '
'evaluate the\n'
'primary and the expression list.\n'
'\n'
'The primary must evaluate to an object that supports ' 'The primary must evaluate to an object that supports '
'subscription\n' 'subscription. An\n'
'(lists or dictionaries for example). User-defined objects ' 'object may support subscription through defining one or '
'can support\n' 'both of\n'
'subscription by defining a "__getitem__()" method.\n' '"__getitem__()" and "__class_getitem__()". When the primary '
'is\n'
'subscripted, the evaluated result of the expression list '
'will be\n'
'passed to one of these methods. For more details on when\n'
'"__class_getitem__" is called instead of "__getitem__", '
'see\n'
'__class_getitem__ versus __getitem__.\n'
'\n'
'If the expression list contains at least one comma, it will '
'evaluate\n'
'to a "tuple" containing the items of the expression list. '
'Otherwise,\n'
'the expression list will evaluate to the value of the '
'list’s sole\n'
'member.\n'
'\n' '\n'
'For built-in objects, there are two types of objects that ' 'For built-in objects, there are two types of objects that '
'support\n' 'support\n'
'subscription:\n' 'subscription via "__getitem__()":\n'
'\n' '\n'
'If the primary is a mapping, the expression list must ' '1. Mappings. If the primary is a *mapping*, the expression '
'evaluate to an\n' 'list must\n'
'object whose value is one of the keys of the mapping, and ' ' evaluate to an object whose value is one of the keys of '
'the\n' 'the\n'
'subscription selects the value in the mapping that ' ' mapping, and the subscription selects the value in the '
'corresponds to that\n' 'mapping that\n'
'key. (The expression list is a tuple except if it has ' ' corresponds to that key. An example of a builtin mapping '
'exactly one\n' 'class is\n'
'item.)\n' ' the "dict" class.\n'
'\n' '\n'
'If the primary is a sequence, the expression list must ' '2. Sequences. If the primary is a *sequence*, the '
'evaluate to an\n' 'expression list must\n'
'integer or a slice (as discussed in the following ' ' evaluate to an "int" or a "slice" (as discussed in the '
'section).\n' 'following\n'
' section). Examples of builtin sequence classes include '
'the "str",\n'
' "list" and "tuple" classes.\n'
'\n' '\n'
'The formal syntax makes no special provision for negative ' 'The formal syntax makes no special provision for negative '
'indices in\n' 'indices in\n'
'sequences; however, built-in sequences all provide a ' '*sequences*. However, built-in sequences all provide a '
'"__getitem__()"\n' '"__getitem__()"\n'
'method that interprets negative indices by adding the ' 'method that interprets negative indices by adding the '
'length of the\n' 'length of the\n'
'sequence to the index (so that "x[-1]" selects the last ' 'sequence to the index so that, for example, "x[-1]" selects '
'item of "x").\n' 'the last\n'
'The resulting value must be a nonnegative integer less than ' 'item of "x". The resulting value must be a nonnegative '
'the number\n' 'integer less\n'
'of items in the sequence, and the subscription selects the ' 'than the number of items in the sequence, and the '
'item whose\n' 'subscription selects\n'
'index is that value (counting from zero). Since the support ' 'the item whose index is that value (counting from zero). '
'for\n' 'Since the\n'
'negative indices and slicing occurs in the object’s ' 'support for negative indices and slicing occurs in the '
'"__getitem__()"\n' 'object’s\n'
'method, subclasses overriding this method will need to ' '"__getitem__()" method, subclasses overriding this method '
'explicitly add\n' 'will need to\n'
'that support.\n' 'explicitly add that support.\n'
'\n'
'A string’s items are characters. A character is not a '
'separate data\n'
'type but a string of exactly one character.\n'
'\n' '\n'
'Subscription of certain *classes* or *types* creates a ' 'A "string" is a special kind of sequence whose items are '
'generic alias.\n' '*characters*.\n'
'In this case, user-defined classes can support subscription ' 'A character is not a separate data type but a string of '
'by\n' 'exactly one\n'
'providing a "__class_getitem__()" classmethod.\n', 'character.\n',
'truth': 'Truth Value Testing\n' 'truth': 'Truth Value Testing\n'
'*******************\n' '*******************\n'
'\n' '\n'
...@@ -12502,10 +12502,10 @@ ...@@ -12502,10 +12502,10 @@
'exception. For an except clause with an expression, that expression\n' 'exception. For an except clause with an expression, that expression\n'
'is evaluated, and the clause matches the exception if the resulting\n' 'is evaluated, and the clause matches the exception if the resulting\n'
'object is “compatible” with the exception. An object is compatible\n' 'object is “compatible” with the exception. An object is compatible\n'
'with an exception if the object is the class or a base class of the\n' 'with an exception if the object is the class or a *non-virtual base\n'
'exception object, or a tuple containing an item that is the class or ' 'class* of the exception object, or a tuple containing an item that '
'a\n' 'is\n'
'base class of the exception object.\n' 'the class or a non-virtual base class of the exception object.\n'
'\n' '\n'
'If no except clause matches the exception, the search for an ' 'If no except clause matches the exception, the search for an '
'exception\n' 'exception\n'
......
This diff is collapsed.
``configure`` now verifies that all SQLite C APIs needed for the
:mod:`sqlite3` extension module are found.
Building Python now requires support of IEEE 754 floating point numbers.
Patch by Victor Stinner.
Add ``regen-configure`` make target to regenerate configure script with
Christian's container image ``quay.io/tiran/cpython_autoconf:269``.
The :mod:`tkinter` package now requires Tcl/Tk version 8.5.12 or newer.
Update OpenSSL to 1.1.1n for macOS installers and all Windows builds.
Ensure Windows install builds fail correctly with a non-zero exit code when
part of the build fails.
Add SOABI ``wasm32-emscripten`` for Emscripten and ``wasm32-wasi`` for WASI
on 32bit WASM as well as ``wasm64`` counter parts.
``makesetup`` now detects and skips all duplicated module definitions. The
first entry wins.
Add configure option :option:`--enable-wasm-dynamic-linking` to enable
``dlopen`` and MAIN_MODULE / SIDE_MODULE on ``wasm32-emscripten``.
Add new functions to pack and unpack C double (serialize and deserialize):
:c:func:`PyFloat_Pack2`, :c:func:`PyFloat_Pack4`, :c:func:`PyFloat_Pack8`,
:c:func:`PyFloat_Unpack2`, :c:func:`PyFloat_Unpack4` and
:c:func:`PyFloat_Unpack8`. Patch by Victor Stinner.
Remove private functions ``_PySys_GetObjectId()`` and ``_PySys_SetObjectId()``.
Patch by Dong-hee Na.
Remove the following private undocumented functions from the C API:
* ``_PyEval_GetAsyncGenFirstiter()``
* ``_PyEval_GetAsyncGenFinalizer()``
* ``_PyEval_SetAsyncGenFirstiter()``
* ``_PyEval_SetAsyncGenFinalizer()``
Call the public :func:`sys.get_asyncgen_hooks` and
:func:`sys.set_asyncgen_hooks` functions instead. Patch by Victor Stinner.
Remove the private undocumented function
``_PyEval_GetCoroutineOriginTrackingDepth()`` from the C API. Call the
public :func:`sys.get_coroutine_origin_tracking_depth` function instead.
Patch by Victor Stinner.
Remove the private undocumented function ``_PyEval_CallTracing()`` from the
C API. Call the public :func:`sys.call_tracing` function instead. Patch by
Victor Stinner.
Move the private undocumented ``_PyEval_EvalFrameDefault()`` function to the
internal C API. The function now uses the ``_PyInterpreterFrame`` type which is
part of the internal C API. Patch by Victor Stinner.
Move the private ``_PyFrameEvalFunction`` type, and private
``_PyInterpreterState_GetEvalFrameFunc()`` and
``_PyInterpreterState_SetEvalFrameFunc()`` functions to the internal C API. The
``_PyFrameEvalFunction`` callback function type now uses the
``_PyInterpreterFrame`` type which is part of the internal C API. Patch by
Victor Stinner.
Add ``PyFrame_GetBuiltins``, ``PyFrame_GetGenerator`` and
``PyFrame_GetGlobals`` C-API functions to access frame object attributes
safely from C code.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment