mirror of
https://github.com/python/cpython.git
synced 2025-07-26 12:44:33 +00:00
Python 3.10.0rc1
This commit is contained in:
parent
567176249e
commit
cc115e5bf6
70 changed files with 7999 additions and 5171 deletions
|
@ -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'
|
||||
|
@ -1313,6 +1313,10 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'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'
|
||||
|
@ -1328,6 +1332,10 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'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 '
|
||||
|
@ -1359,6 +1367,10 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'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 '
|
||||
|
@ -1373,9 +1385,16 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'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'
|
||||
|
@ -1388,14 +1407,18 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'\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'
|
||||
|
@ -1841,7 +1864,11 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
' 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'
|
||||
|
@ -3270,11 +3297,11 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'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'
|
||||
|
@ -3292,7 +3319,10 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'\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'
|
||||
|
@ -8373,7 +8403,10 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'"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'
|
||||
|
@ -8773,6 +8806,10 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'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 '
|
||||
|
@ -14423,7 +14460,7 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'| | "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'
|
||||
|
@ -14886,7 +14923,7 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'| | "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'
|
||||
|
@ -14951,15 +14988,21 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
' 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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue