Skip to content
Snippets Groups Projects
Unverified Commit 1016ef37 authored by Łukasz Langa's avatar Łukasz Langa
Browse files

Python 3.9.7

parent 9827710a
No related branches found
No related tags found
No related merge requests found
Showing
with 983 additions and 45 deletions
...@@ -18,12 +18,12 @@ ...@@ -18,12 +18,12 @@
/*--start constants--*/ /*--start constants--*/
#define PY_MAJOR_VERSION 3 #define PY_MAJOR_VERSION 3
#define PY_MINOR_VERSION 9 #define PY_MINOR_VERSION 9
#define PY_MICRO_VERSION 6 #define PY_MICRO_VERSION 7
#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.9.6+" #define PY_VERSION "3.9.7"
/*--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 Jun 28 10:13:28 2021 # Autogenerated by Sphinx on Mon Aug 30 20:40:44 2021
topics = {'assert': 'The "assert" statement\n' topics = {'assert': 'The "assert" statement\n'
'**********************\n' '**********************\n'
'\n' '\n'
...@@ -1259,6 +1259,10 @@ ...@@ -1259,6 +1259,10 @@
'In the latter case, sequence repetition is performed; a negative\n' 'In the latter case, sequence repetition is performed; a negative\n'
'repetition factor yields an empty sequence.\n' 'repetition factor yields an empty sequence.\n'
'\n' '\n'
'This operation can be customized using the special "__mul__()" '
'and\n'
'"__rmul__()" methods.\n'
'\n'
'The "@" (at) operator is intended to be used for matrix\n' 'The "@" (at) operator is intended to be used for matrix\n'
'multiplication. No builtin Python types implement this operator.\n' 'multiplication. No builtin Python types implement this operator.\n'
'\n' '\n'
...@@ -1274,6 +1278,10 @@ ...@@ -1274,6 +1278,10 @@
'result. Division by zero raises the "ZeroDivisionError" ' 'result. Division by zero raises the "ZeroDivisionError" '
'exception.\n' 'exception.\n'
'\n' '\n'
'This operation can be customized using the special "__truediv__()" '
'and\n'
'"__floordiv__()" methods.\n'
'\n'
'The "%" (modulo) operator yields the remainder from the division ' 'The "%" (modulo) operator yields the remainder from the division '
'of\n' 'of\n'
'the first argument by the second. The numeric arguments are ' 'the first argument by the second. The numeric arguments are '
...@@ -1305,6 +1313,10 @@ ...@@ -1305,6 +1313,10 @@
'string formatting is described in the Python Library Reference,\n' 'string formatting is described in the Python Library Reference,\n'
'section printf-style String Formatting.\n' 'section printf-style String Formatting.\n'
'\n' '\n'
'The *modulo* operation can be customized using the special '
'"__mod__()"\n'
'method.\n'
'\n'
'The floor division operator, the modulo operator, and the ' 'The floor division operator, the modulo operator, and the '
'"divmod()"\n' '"divmod()"\n'
'function are not defined for complex numbers. Instead, convert to ' 'function are not defined for complex numbers. Instead, convert to '
...@@ -1319,9 +1331,16 @@ ...@@ -1319,9 +1331,16 @@
'and then added together. In the latter case, the sequences are\n' 'and then added together. In the latter case, the sequences are\n'
'concatenated.\n' 'concatenated.\n'
'\n' '\n'
'This operation can be customized using the special "__add__()" '
'and\n'
'"__radd__()" methods.\n'
'\n'
'The "-" (subtraction) operator yields the difference of its ' 'The "-" (subtraction) operator yields the difference of its '
'arguments.\n' 'arguments.\n'
'The numeric arguments are first converted to a common type.\n', 'The numeric arguments are first converted to a common type.\n'
'\n'
'This operation can be customized using the special "__sub__()" '
'method.\n',
'bitwise': 'Binary bitwise operations\n' 'bitwise': 'Binary bitwise operations\n'
'*************************\n' '*************************\n'
'\n' '\n'
...@@ -1334,14 +1353,18 @@ ...@@ -1334,14 +1353,18 @@
'\n' '\n'
'The "&" operator yields the bitwise AND of its arguments, which ' 'The "&" operator yields the bitwise AND of its arguments, which '
'must\n' 'must\n'
'be integers.\n' 'be integers or one of them must be a custom object overriding\n'
'"__and__()" or "__rand__()" special methods.\n'
'\n' '\n'
'The "^" operator yields the bitwise XOR (exclusive OR) of its\n' 'The "^" operator yields the bitwise XOR (exclusive OR) of its\n'
'arguments, which must be integers.\n' 'arguments, which must be integers or one of them must be a '
'custom\n'
'object overriding "__xor__()" or "__rxor__()" special methods.\n'
'\n' '\n'
'The "|" operator yields the bitwise (inclusive) OR of its ' 'The "|" operator yields the bitwise (inclusive) OR of its '
'arguments,\n' 'arguments,\n'
'which must be integers.\n', 'which must be integers or one of them must be a custom object\n'
'overriding "__or__()" or "__ror__()" special methods.\n',
'bltin-code-objects': 'Code Objects\n' 'bltin-code-objects': 'Code Objects\n'
'************\n' '************\n'
'\n' '\n'
...@@ -1787,7 +1810,11 @@ ...@@ -1787,7 +1810,11 @@
' comp_operator ::= "<" | ">" | "==" | ">=" | "<=" | "!="\n' ' comp_operator ::= "<" | ">" | "==" | ">=" | "<=" | "!="\n'
' | "is" ["not"] | ["not"] "in"\n' ' | "is" ["not"] | ["not"] "in"\n'
'\n' '\n'
'Comparisons yield boolean values: "True" or "False".\n' 'Comparisons yield boolean values: "True" or "False". Custom '
'*rich\n'
'comparison methods* may return non-boolean values. In this '
'case Python\n'
'will call "bool()" on such value in boolean contexts.\n'
'\n' '\n'
'Comparisons can be chained arbitrarily, e.g., "x < y <= z" ' 'Comparisons can be chained arbitrarily, e.g., "x < y <= z" '
'is\n' 'is\n'
...@@ -7472,7 +7499,10 @@ ...@@ -7472,7 +7499,10 @@
'"ZeroDivisionError".\n' '"ZeroDivisionError".\n'
'Raising a negative number to a fractional power results in a ' 'Raising a negative number to a fractional power results in a '
'"complex"\n' '"complex"\n'
'number. (In earlier versions it raised a "ValueError".)\n', 'number. (In earlier versions it raised a "ValueError".)\n'
'\n'
'This operation can be customized using the special "__pow__()" '
'method.\n',
'raise': 'The "raise" statement\n' 'raise': 'The "raise" statement\n'
'*********************\n' '*********************\n'
'\n' '\n'
...@@ -7872,6 +7902,10 @@ ...@@ -7872,6 +7902,10 @@
'the\n' 'the\n'
'second argument.\n' 'second argument.\n'
'\n' '\n'
'This operation can be customized using the special '
'"__lshift__()" and\n'
'"__rshift__()" methods.\n'
'\n'
'A right shift by *n* bits is defined as floor division by ' 'A right shift by *n* bits is defined as floor division by '
'"pow(2,n)".\n' '"pow(2,n)".\n'
'A left shift by *n* bits is defined as multiplication with ' 'A left shift by *n* bits is defined as multiplication with '
...@@ -10092,7 +10126,7 @@ ...@@ -10092,7 +10126,7 @@
'*start* and\n' '*start* and\n'
' *end* are interpreted as in slice notation.\n' ' *end* are interpreted as in slice notation.\n'
'\n' '\n'
"str.encode(encoding='utf-8', errors='strict')\n" 'str.encode(encoding="utf-8", errors="strict")\n'
'\n' '\n'
' Return an encoded version of the string as a bytes ' ' Return an encoded version of the string as a bytes '
'object. Default\n' 'object. Default\n'
...@@ -11611,7 +11645,7 @@ ...@@ -11611,7 +11645,7 @@
' points. All the code points in the range "U+0000 - ' ' points. All the code points in the range "U+0000 - '
'U+10FFFF"\n' 'U+10FFFF"\n'
' can be represented in a string. Python doesn’t have a ' ' can be represented in a string. Python doesn’t have a '
'*char*\n' '"char"\n'
' type; instead, every code point in the string is ' ' type; instead, every code point in the string is '
'represented\n' 'represented\n'
' as a string object with length "1". The built-in ' ' as a string object with length "1". The built-in '
...@@ -13419,7 +13453,7 @@ ...@@ -13419,7 +13453,7 @@
'| | "s[i:i] = ' '| | "s[i:i] = '
'[x]") | |\n' '[x]") | |\n'
'+--------------------------------+----------------------------------+-----------------------+\n' '+--------------------------------+----------------------------------+-----------------------+\n'
'| "s.pop([i])" | retrieves the item at *i* ' '| "s.pop()" or "s.pop(i)" | retrieves the item at *i* '
'and | (2) |\n' 'and | (2) |\n'
'| | also removes it from ' '| | also removes it from '
'*s* | |\n' '*s* | |\n'
...@@ -13882,7 +13916,7 @@ ...@@ -13882,7 +13916,7 @@
'| | "s[i:i] = ' '| | "s[i:i] = '
'[x]") | |\n' '[x]") | |\n'
'+--------------------------------+----------------------------------+-----------------------+\n' '+--------------------------------+----------------------------------+-----------------------+\n'
'| "s.pop([i])" | retrieves the item at ' '| "s.pop()" or "s.pop(i)" | retrieves the item at '
'*i* and | (2) |\n' '*i* and | (2) |\n'
'| | also removes it from ' '| | also removes it from '
'*s* | |\n' '*s* | |\n'
...@@ -13947,15 +13981,21 @@ ...@@ -13947,15 +13981,21 @@
' u_expr ::= power | "-" u_expr | "+" u_expr | "~" u_expr\n' ' u_expr ::= power | "-" u_expr | "+" u_expr | "~" u_expr\n'
'\n' '\n'
'The unary "-" (minus) operator yields the negation of its numeric\n' 'The unary "-" (minus) operator yields the negation of its numeric\n'
'argument.\n' 'argument; the operation can be overridden with the "__neg__()" '
'special\n'
'method.\n'
'\n' '\n'
'The unary "+" (plus) operator yields its numeric argument ' 'The unary "+" (plus) operator yields its numeric argument '
'unchanged.\n' 'unchanged;\n'
'the operation can be overridden with the "__pos__()" special '
'method.\n'
'\n' '\n'
'The unary "~" (invert) operator yields the bitwise inversion of ' 'The unary "~" (invert) operator yields the bitwise inversion of '
'its\n' 'its\n'
'integer argument. The bitwise inversion of "x" is defined as\n' 'integer argument. The bitwise inversion of "x" is defined as\n'
'"-(x+1)". It only applies to integral numbers.\n' '"-(x+1)". It only applies to integral numbers or to custom '
'objects\n'
'that override the "__invert__()" special method.\n'
'\n' '\n'
'In all three cases, if the argument does not have the proper type, ' 'In all three cases, if the argument does not have the proper type, '
'a\n' 'a\n'
......
This diff is collapsed.
Improved error message when building without a Windows SDK installed.
Enable building using a Visual Studio 2022 install on Windows.
Fix crash when using passing a non-exception to a generator's ``throw()`` method. Patch by Noah Oxer
Fix a crash at Python exit when a deallocator function removes the last strong
reference to a heap type.
Patch by Victor Stinner.
Fix ltrace functionality when exceptions are raised. Patch by Pablo Galindo
Remove the pass-through for :func:`hash` of :class:`weakref.proxy` objects
to prevent unintended consequences when the original referred object
dies while the proxy is part of a hashable object. Patch by Pablo Galindo.
Remove uses of :c:func:`PyObject_GC_Del` in error path when initializing
:class:`types.GenericAlias`.
Fix undefined behaviour in complex object exponentiation.
\ No newline at end of file
Fix reference leaks in the error paths of ``update_bases()`` and ``__build_class__``. Patch by Pablo Galindo.
Fix bug where ``PyErr_SetObject`` hangs when the current exception has a cycle in its context chain.
\ No newline at end of file
Fix segmentation fault with deep recursion when cleaning method objects.
Patch by Augusto Goulart and Pablo Galindo.
Use new trashcan macros (Py_TRASHCAN_BEGIN/END) in frameobject.c instead of the old ones (Py_TRASHCAN_SAFE_BEGIN/END).
\ No newline at end of file
Correct the ast locations of f-strings with format specs and repeated
expressions. Patch by Pablo Galindo
Restore behaviour of complex exponentiation with integer-valued exponent of
type :class:`float` or :class:`complex`.
Refine the syntax error for trailing commas in import statements. Patch by
Pablo Galindo.
Fixed a corner case bug where the result of ``float.fromhex('0x.8p-1074')``
was rounded the wrong way.
Fix a race in WeakKeyDictionary, WeakValueDictionary and WeakSet when two threads attempt to commit the last pending removal. This fixes asyncio.create_task and fixes a data loss in asyncio.run where shutdown_asyncgens is not run
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment