mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Python 3.9.7
This commit is contained in:
parent
9827710a40
commit
1016ef3790
94 changed files with 984 additions and 209 deletions
|
@ -1,5 +1,5 @@
|
|||
# -*- 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'
|
||||
'**********************\n'
|
||||
'\n'
|
||||
|
@ -1259,6 +1259,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'
|
||||
|
@ -1274,6 +1278,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 "__truediv__()" '
|
||||
'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 '
|
||||
|
@ -1305,6 +1313,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 '
|
||||
|
@ -1319,9 +1331,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'
|
||||
|
@ -1334,14 +1353,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'
|
||||
|
@ -1787,7 +1810,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'
|
||||
|
@ -7472,7 +7499,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'
|
||||
|
@ -7872,6 +7902,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 '
|
||||
|
@ -10092,7 +10126,7 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'*start* and\n'
|
||||
' *end* are interpreted as in slice notation.\n'
|
||||
'\n'
|
||||
"str.encode(encoding='utf-8', errors='strict')\n"
|
||||
'str.encode(encoding="utf-8", errors="strict")\n'
|
||||
'\n'
|
||||
' Return an encoded version of the string as a bytes '
|
||||
'object. Default\n'
|
||||
|
@ -10598,7 +10632,7 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'followed by\n'
|
||||
' the string itself.\n'
|
||||
'\n'
|
||||
'str.rsplit(sep=None, maxsplit=- 1)\n'
|
||||
'str.rsplit(sep=None, maxsplit=-1)\n'
|
||||
'\n'
|
||||
' Return a list of the words in the string, using *sep* '
|
||||
'as the\n'
|
||||
|
@ -10639,7 +10673,7 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
" >>> 'Monty Python'.removesuffix(' Python')\n"
|
||||
" 'Monty'\n"
|
||||
'\n'
|
||||
'str.split(sep=None, maxsplit=- 1)\n'
|
||||
'str.split(sep=None, maxsplit=-1)\n'
|
||||
'\n'
|
||||
' Return a list of the words in the string, using *sep* '
|
||||
'as the\n'
|
||||
|
@ -11611,7 +11645,7 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
' points. All the code points in the range "U+0000 - '
|
||||
'U+10FFFF"\n'
|
||||
' can be represented in a string. Python doesn’t have a '
|
||||
'*char*\n'
|
||||
'"char"\n'
|
||||
' type; instead, every code point in the string is '
|
||||
'represented\n'
|
||||
' as a string object with length "1". The built-in '
|
||||
|
@ -13419,7 +13453,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'
|
||||
|
@ -13882,7 +13916,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'
|
||||
|
@ -13947,15 +13981,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