|
1 | 1 | # -*- coding: utf-8 -*- |
2 | | -# Autogenerated by Sphinx on Tue Aug 6 21:02:50 2024 |
| 2 | +# Autogenerated by Sphinx on Fri Sep 6 21:00:45 2024 |
3 | 3 | # as part of the release process. |
4 | 4 | topics = {'assert': 'The "assert" statement\n' |
5 | 5 | '**********************\n' |
|
3101 | 3101 | ' | "None"\n' |
3102 | 3102 | ' | "True"\n' |
3103 | 3103 | ' | "False"\n' |
3104 | | - ' | signed_number: NUMBER | "-" NUMBER\n' |
| 3104 | + ' signed_number ::= ["-"] NUMBER\n' |
3105 | 3105 | '\n' |
3106 | 3106 | 'The rule "strings" and the token "NUMBER" are defined in the ' |
3107 | 3107 | 'standard\n' |
|
8991 | 8991 | 'types, operations that compute new values may actually return a\n' |
8992 | 8992 | 'reference to any existing object with the same type and value, ' |
8993 | 8993 | 'while\n' |
8994 | | - 'for mutable objects this is not allowed. E.g., after "a = 1; b = ' |
8995 | | - '1",\n' |
8996 | | - '"a" and "b" may or may not refer to the same object with the ' |
8997 | | - 'value\n' |
8998 | | - 'one, depending on the implementation, but after "c = []; d = []", ' |
8999 | | - '"c"\n' |
9000 | | - 'and "d" are guaranteed to refer to two different, unique, newly\n' |
9001 | | - 'created empty lists. (Note that "c = d = []" assigns the same ' |
9002 | | - 'object\n' |
9003 | | - 'to both "c" and "d".)\n', |
| 8994 | + 'for mutable objects this is not allowed. For example, after "a = ' |
| 8995 | + '1; b\n' |
| 8996 | + '= 1", *a* and *b* may or may not refer to the same object with ' |
| 8997 | + 'the\n' |
| 8998 | + 'value one, depending on the implementation. This is because "int" ' |
| 8999 | + 'is\n' |
| 9000 | + 'an immutable type, so the reference to "1" can be reused. This\n' |
| 9001 | + 'behaviour depends on the implementation used, so should not be ' |
| 9002 | + 'relied\n' |
| 9003 | + 'upon, but is something to be aware of when making use of object\n' |
| 9004 | + 'identity tests. However, after "c = []; d = []", *c* and *d* are\n' |
| 9005 | + 'guaranteed to refer to two different, unique, newly created ' |
| 9006 | + 'empty\n' |
| 9007 | + 'lists. (Note that "e = f = []" assigns the *same* object to both ' |
| 9008 | + '*e*\n' |
| 9009 | + 'and *f*.)\n', |
9004 | 9010 | 'operator-summary': 'Operator precedence\n' |
9005 | 9011 | '*******************\n' |
9006 | 9012 | '\n' |
@@ -13075,15 +13081,13 @@ |
13075 | 13081 | 'greater must be expressed with escapes.\n' |
13076 | 13082 | '\n' |
13077 | 13083 | 'Both string and bytes literals may optionally be prefixed with a\n' |
13078 | | - 'letter "\'r\'" or "\'R\'"; such strings are called *raw strings* ' |
13079 | | - 'and treat\n' |
13080 | | - 'backslashes as literal characters. As a result, in string ' |
13081 | | - 'literals,\n' |
13082 | | - '"\'\\U\'" and "\'\\u\'" escapes in raw strings are not treated ' |
13083 | | - 'specially.\n' |
13084 | | - 'Given that Python 2.x’s raw unicode literals behave differently ' |
13085 | | - 'than\n' |
13086 | | - 'Python 3.x’s the "\'ur\'" syntax is not supported.\n' |
| 13084 | + 'letter "\'r\'" or "\'R\'"; such constructs are called *raw ' |
| 13085 | + 'string\n' |
| 13086 | + 'literals* and *raw bytes literals* respectively and treat ' |
| 13087 | + 'backslashes\n' |
| 13088 | + 'as literal characters. As a result, in raw string literals, ' |
| 13089 | + '"\'\\U\'"\n' |
| 13090 | + 'and "\'\\u\'" escapes are not treated specially.\n' |
13087 | 13091 | '\n' |
13088 | 13092 | 'Added in version 3.3: The "\'rb\'" prefix of raw bytes literals ' |
13089 | 13093 | 'has been\n' |
|
13977 | 13981 | 'however removing a key and re-inserting it will add it to the end\n' |
13978 | 13982 | 'instead of keeping its old place.\n' |
13979 | 13983 | '\n' |
13980 | | - 'Dictionaries are mutable; they can be created by the "{...}" ' |
13981 | | - 'notation\n' |
| 13984 | + 'Dictionaries are mutable; they can be created by the "{}" notation\n' |
13982 | 13985 | '(see section Dictionary displays).\n' |
13983 | 13986 | '\n' |
13984 | 13987 | 'The extension modules "dbm.ndbm" and "dbm.gnu" provide additional\n' |
|
15963 | 15966 | '| | also removes it from ' |
15964 | 15967 | '*s* | |\n' |
15965 | 15968 | '+--------------------------------+----------------------------------+-----------------------+\n' |
15966 | | - '| "s.remove(x)" | remove the first item from ' |
15967 | | - '*s* | (3) |\n' |
| 15969 | + '| "s.remove(x)" | removes the first item from ' |
| 15970 | + '*s* | (3) |\n' |
15968 | 15971 | '| | where "s[i]" is equal to ' |
15969 | 15972 | '*x* | |\n' |
15970 | 15973 | '+--------------------------------+----------------------------------+-----------------------+\n' |
|
16428 | 16431 | '| | also removes it from ' |
16429 | 16432 | '*s* | |\n' |
16430 | 16433 | '+--------------------------------+----------------------------------+-----------------------+\n' |
16431 | | - '| "s.remove(x)" | remove the first item ' |
16432 | | - 'from *s* | (3) |\n' |
| 16434 | + '| "s.remove(x)" | removes the first ' |
| 16435 | + 'item from *s* | (3) |\n' |
16433 | 16436 | '| | where "s[i]" is equal ' |
16434 | 16437 | 'to *x* | |\n' |
16435 | 16438 | '+--------------------------------+----------------------------------+-----------------------+\n' |
|
0 commit comments