|
1 | 1 | # -*- coding: utf-8 -*-
|
2 |
| -# Autogenerated by Sphinx on Fri Apr 2 12:30:35 2021 |
| 2 | +# Autogenerated by Sphinx on Mon May 3 11:26:22 2021 |
3 | 3 | topics = {'assert': 'The "assert" statement\n'
|
4 | 4 | '**********************\n'
|
5 | 5 | '\n'
|
|
987 | 987 | '\n'
|
988 | 988 | 'For instance bindings, the precedence of descriptor '
|
989 | 989 | 'invocation depends\n'
|
990 |
| - 'on the which descriptor methods are defined. A ' |
991 |
| - 'descriptor can define\n' |
992 |
| - 'any combination of "__get__()", "__set__()" and ' |
| 990 | + 'on which descriptor methods are defined. A descriptor ' |
| 991 | + 'can define any\n' |
| 992 | + 'combination of "__get__()", "__set__()" and ' |
993 | 993 | '"__delete__()". If it\n'
|
994 | 994 | 'does not define "__get__()", then accessing the '
|
995 | 995 | 'attribute will return\n'
|
|
2746 | 2746 | 'Calls.\n'
|
2747 | 2747 | 'A function call always assigns values to all parameters '
|
2748 | 2748 | 'mentioned in\n'
|
2749 |
| - 'the parameter list, either from position arguments, from ' |
| 2749 | + 'the parameter list, either from positional arguments, from ' |
2750 | 2750 | 'keyword\n'
|
2751 | 2751 | 'arguments, or from default values. If the form “"*identifier"” '
|
2752 | 2752 | 'is\n'
|
|
2758 | 2758 | 'new\n'
|
2759 | 2759 | 'empty mapping of the same type. Parameters after “"*"” or\n'
|
2760 | 2760 | '“"*identifier"” are keyword-only parameters and may only be '
|
2761 |
| - 'passed\n' |
2762 |
| - 'used keyword arguments.\n' |
| 2761 | + 'passed by\n' |
| 2762 | + 'keyword arguments. Parameters before “"/"” are positional-only\n' |
| 2763 | + 'parameters and may only be passed by positional arguments.\n' |
| 2764 | + '\n' |
| 2765 | + 'Changed in version 3.8: The "/" function parameter syntax may be ' |
| 2766 | + 'used\n' |
| 2767 | + 'to indicate positional-only parameters. See **PEP 570** for ' |
| 2768 | + 'details.\n' |
2763 | 2769 | '\n'
|
2764 | 2770 | 'Parameters may have an *annotation* of the form “": '
|
2765<
F438
/code> | 2771 | 'expression"”\n'
|
|
5201 | 5207 | 'character that can be any character and defaults to a space '
|
5202 | 5208 | 'if\n'
|
5203 | 5209 | 'omitted. It is not possible to use a literal curly brace '
|
5204 |
| - '(“"{"” or\n' |
| 5210 | + '(”"{"” or\n' |
5205 | 5211 | '“"}"”) as the *fill* character in a formatted string '
|
5206 | 5212 | 'literal or when\n'
|
5207 | 5213 | 'using the "str.format()" method. However, it is possible '
|
|
5874 | 5880 | 'Calls.\n'
|
5875 | 5881 | 'A function call always assigns values to all parameters '
|
5876 | 5882 | 'mentioned in\n'
|
5877 |
| - 'the parameter list, either from position arguments, from ' |
| 5883 | + 'the parameter list, either from positional arguments, from ' |
5878 | 5884 | 'keyword\n'
|
5879 | 5885 | 'arguments, or from default values. If the form “"*identifier"” '
|
5880 | 5886 | 'is\n'
|
|
5886 | 5892 | 'new\n'
|
5887 | 5893 | 'empty mapping of the same type. Parameters after “"*"” or\n'
|
5888 | 5894 | '“"*identifier"” are keyword-only parameters and may only be '
|
5889 |
| - 'passed\n' |
5890 |
| - 'used keyword arguments.\n' |
| 5895 | + 'passed by\n' |
| 5896 | + 'keyword arguments. Parameters before “"/"” are positional-only\n' |
| 5897 | + 'parameters and may only be passed by positional arguments.\n' |
| 5898 | + '\n' |
| 5899 | + 'Changed in version 3.8: The "/" function parameter syntax may be ' |
| 5900 | + 'used\n' |
| 5901 | + 'to indicate positional-only parameters. See **PEP 570** for ' |
| 5902 | + 'details.\n' |
5891 | 5903 | '\n'
|
5892 | 5904 | 'Parameters may have an *annotation* of the form “": '
|
5893 | 5905 | 'expression"”\n'
|
|
6875 | 6887 | '\n'
|
6876 | 6888 | 'Note that numeric literals do not include a sign; a phrase like '
|
6877 | 6889 | '"-1"\n'
|
6878 |
| - 'is actually an expression composed of the unary operator ‘"-"‘ ' |
| 6890 | + 'is actually an expression composed of the unary operator ‘"-"’ ' |
6879 | 6891 | 'and the\n'
|
6880 | 6892 | 'literal "1".\n',
|
6881 | 6893 | 'numeric-types': 'Emulating numeric types\n'
|
|
7473 | 7485 | '\n'
|
7474 | 7486 | 'The "from" clause is used for exception chaining: if given, the '
|
7475 | 7487 | 'second\n'
|
7476 |
| - '*expression* must be another exception class or instance, which ' |
7477 |
| - 'will\n' |
7478 |
| - 'then be attached to the raised exception as the "__cause__" ' |
7479 |
| - 'attribute\n' |
7480 |
| - '(which is writable). If the raised exception is not handled, both\n' |
7481 |
| - 'exceptions will be printed:\n' |
| 7488 | + '*expression* must be another exception class or instance. If the\n' |
| 7489 | + 'second expression is an exception instance, it will be attached to ' |
| 7490 | + 'the\n' |
| 7491 | + 'raised exception as the "__cause__" attribute (which is writable). ' |
| 7492 | + 'If\n' |
| 7493 | + 'the expression is an exception class, the class will be ' |
| 7494 | + 'instantiated\n' |
| 7495 | + 'and the resulting exception instance will be attached to the ' |
| 7496 | + 'raised\n' |
| 7497 | + 'exception as the "__cause__" attribute. If the raised exception is ' |
| 7498 | + 'not\n' |
| 7499 | + 'handled, both exceptions will be printed:\n' |
7482 | 7500 | '\n'
|
7483 | 7501 | ' >>> try:\n'
|
7484 | 7502 | ' ... print(1 / 0)\n'
|
|
8820 | 8838 | '\n'
|
8821 | 8839 | 'For instance bindings, the precedence of descriptor '
|
8822 | 8840 | 'invocation depends\n'
|
8823 |
| - 'on the which descriptor methods are defined. A descriptor ' |
8824 |
| - 'can define\n' |
8825 |
| - 'any combination of "__get__()", "__set__()" and ' |
8826 |
| - '"__delete__()". If it\n' |
| 8841 | + 'on which descriptor methods are defined. A descriptor can ' |
| 8842 | + 'define any\n' |
| 8843 | + 'combination of "__get__()", "__set__()" and "__delete__()". ' |
| 8844 | + 'If it\n' |
8827 | 8845 | 'does not define "__get__()", then accessing the attribute '
|
8828 | 8846 | 'will return\n'
|
8829 | 8847 | 'the descriptor object itself unless there is a value in the '
|
|
10049 | 10067 | '*start* and\n'
|
10050 | 10068 | ' *end* are interpreted as in slice notation.\n'
|
10051 | 10069 | '\n'
|
10052 |
| - 'str.encode(encoding="utf-8", errors="strict")\n' |
| 10070 | + "str.encode(encoding='utf-8', errors='strict')\n" |
10053 | 10071 | '\n'
|
10054 | 10072 | ' Return an encoded version of the string as a bytes '
|
10055 | 10073 | 'object. Default\n'
|
|
10496 | 10514 | 'followed by\n'
|
10497 | 10515 | ' the string itself.\n'
|
10498 | 10516 | '\n'
|
10499 |
| - 'str.rsplit(sep=None, maxsplit=-1)\n' |
| 10517 | + 'str.rsplit(sep=None, maxsplit=- 1)\n' |
10500 | 10518 | '\n'
|
10501 | 10519 | ' Return a list of the words in the string, using *sep* '
|
10502 | 10520 | 'as the\n'
|
|
10527 | 10545 | " >>> 'mississippi'.rstrip('ipz')\n"
|
10528 | 10546 | " 'mississ'\n"
|
10529 | 10547 | '\n'
|
10530 |
| - 'str.split(sep=None, maxsplit=-1)\n' |
| 10548 | + 'str.split(sep=None, maxsplit=- 1)\n' |
10531 | 10549 | '\n'
|
10532 | 10550 | ' Return a list of the words in the string, using *sep* '
|
10533 | 10551 | 'as the\n'
|
|
11485 | 11503 | ' points. All the code points in the range "U+0000 - '
|
11486 | 11504 | 'U+10FFFF"\n'
|
11487 | 11505 | ' can be represented in a string. Python doesn’t have a '
|
11488 |
| - '"char"\n' |
| 11506 | + '*char*\n' |
11489 | 11507 | ' type; instead, every code point in the string is '
|
11490 | 11508 | 'represented\n'
|
11491 | 11509 | ' as a string object with length "1". The built-in '
|
|
0 commit comments