Skip to content

Commit

Permalink
Python 3.10.0rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogsal committed Aug 2, 2021
1 parent 5671762 commit cc115e5
Show file tree
Hide file tree
Showing 70 changed files with 8,117 additions and 5,289 deletions.
6 changes: 3 additions & 3 deletions Include/patchlevel.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
#define PY_MAJOR_VERSION 3
#define PY_MINOR_VERSION 10
#define PY_MICRO_VERSION 0
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_BETA
#define PY_RELEASE_SERIAL 4
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_GAMMA
#define PY_RELEASE_SERIAL 1

/* Version as a string */
#define PY_VERSION "3.10.0b4+"
#define PY_VERSION "3.10.0rc1"
/*--end constants--*/

/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
Expand Down
79 changes: 61 additions & 18 deletions Lib/pydoc_data/topics.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Autogenerated by Sphinx on Sat Jul 10 01:50:39 2021
# Autogenerated by Sphinx on Mon Aug 2 20:07:41 2021
topics = {'assert': 'The "assert" statement\n'
'**********************\n'
'\n'
Expand Down Expand Up @@ -1313,6 +1313,10 @@
'In the latter case, sequence repetition is performed; a negative\n'
'repetition factor yields an empty sequence.\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'
'multiplication. No builtin Python types implement this operator.\n'
'\n'
Expand All @@ -1328,6 +1332,10 @@
'result. Division by zero raises the "ZeroDivisionError" '
'exception.\n'
'\n'
'This operation can be customized using the special "__div__()" '
'and\n'
'"__floordiv__()" methods.\n'
'\n'
'The "%" (modulo) operator yields the remainder from the division '
'of\n'
'the first argument by the second. The numeric arguments are '
Expand Down Expand Up @@ -1359,6 +1367,10 @@
'string formatting is described in the Python Library Reference,\n'
'section printf-style String Formatting.\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 '
'"divmod()"\n'
'function are not defined for complex numbers. Instead, convert to '
Expand All @@ -1373,9 +1385,16 @@
'and then added together. In the latter case, the sequences are\n'
'concatenated.\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 '
'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'
'*************************\n'
'\n'
Expand All @@ -1388,14 +1407,18 @@
'\n'
'The "&" operator yields the bitwise AND of its arguments, which '
'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'
'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'
'The "|" operator yields the bitwise (inclusive) OR of its '
'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'
'************\n'
'\n'
Expand Down Expand Up @@ -1841,7 +1864,11 @@
' comp_operator ::= "<" | ">" | "==" | ">=" | "<=" | "!="\n'
' | "is" ["not"] | ["not"] "in"\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'
'Comparisons can be chained arbitrarily, e.g., "x < y <= z" '
'is\n'
Expand Down Expand Up @@ -3270,11 +3297,11 @@
'double star pattern must be the last subpattern in the mapping\n'
'pattern.\n'
'\n'
'Duplicate key values in mapping patterns are disallowed. (If all '
'key\n'
'patterns are literal patterns this is considered a syntax '
'error;\n'
'otherwise this is a runtime error and will raise "ValueError".)\n'
'Duplicate keys in mapping patterns are disallowed. Duplicate '
'literal\n'
'keys will raise a "SyntaxError". Two keys that otherwise have '
'the same\n'
'value will raise a "ValueError" at runtime.\n'
'\n'
'The following is the logical flow for matching a mapping '
'pattern\n'
Expand All @@ -3292,7 +3319,10 @@
'\n'
'3. If duplicate keys are detected in the mapping pattern, the '
'pattern\n'
' is considered invalid and "ValueError" is raised.\n'
' is considered invalid. A "SyntaxError" is raised for '
'duplicate\n'
' literal values; or a "ValueError" for named keys of the same '
'value.\n'
'\n'
'Note:\n'
'\n'
Expand Down Expand Up @@ -8373,7 +8403,10 @@
'"ZeroDivisionError".\n'
'Raising a negative number to a fractional power results in a '
'"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'
'*********************\n'
'\n'
Expand Down Expand Up @@ -8773,6 +8806,10 @@
'the\n'
'second argument.\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 '
'"pow(2,n)".\n'
'A left shift by *n* bits is defined as multiplication with '
Expand Down Expand Up @@ -14423,7 +14460,7 @@
'| | "s[i:i] = '
'[x]") | |\n'
'+--------------------------------+----------------------------------+-----------------------+\n'
'| "s.pop([i])" | retrieves the item at *i* '
'| "s.pop()" or "s.pop(i)" | retrieves the item at *i* '
'and | (2) |\n'
'| | also removes it from '
'*s* | |\n'
Expand Down Expand Up @@ -14886,7 +14923,7 @@
'| | "s[i:i] = '
'[x]") | |\n'
'+--------------------------------+----------------------------------+-----------------------+\n'
'| "s.pop([i])" | retrieves the item at '
'| "s.pop()" or "s.pop(i)" | retrieves the item at '
'*i* and | (2) |\n'
'| | also removes it from '
'*s* | |\n'
Expand Down Expand Up @@ -14951,15 +14988,21 @@
' u_expr ::= power | "-" u_expr | "+" u_expr | "~" u_expr\n'
'\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'
'The unary "+" (plus) operator yields its numeric argument '
'unchanged.\n'
'unchanged;\n'
'the operation can be overridden with the "__pos__()" special '
'method.\n'
'\n'
'The unary "~" (invert) operator yields the bitwise inversion of '
'its\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'
'In all three cases, if the argument does not have the proper type, '
'a\n'
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_importlib/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ def test_magic_number(self):
# stakeholders such as OS package maintainers must be notified
# in advance. Such exceptional releases will then require an
# adjustment to this test case.
EXPECTED_MAGIC_NUMBER = 3413
EXPECTED_MAGIC_NUMBER = 3439
actual = int.from_bytes(importlib.util.MAGIC_NUMBER[:2], 'little')

msg = (
Expand Down
Loading

0 comments on commit cc115e5

Please sign in to comment.