|
1 | 1 | # -*- coding: utf-8 -*-
|
2 |
| -# Autogenerated by Sphinx on Wed Jul 31 20:10:37 2024 |
| 2 | +# Autogenerated by Sphinx on Fri Sep 6 23:12:24 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'
|
|
9115 | 9115 | 'types, operations that compute new values may actually return a\n'
|
9116 | 9116 | 'reference to any existing object with the same type and value, '
|
9117 | 9117 | 'while\n'
|
9118 |
| - 'for mutable objects this is not allowed. E.g., after "a = 1; b = ' |
9119 |
| - '1",\n' |
9120 |
| - '"a" and "b" may or may not refer to the same object with the ' |
9121 |
| - 'value\n' |
9122 |
| - 'one, depending on the implementation, but after "c = []; d = []", ' |
9123 |
| - '"c"\n' |
9124 |
| - 'and "d" are guaranteed to refer to two different, unique, newly\n' |
9125 |
| - 'created empty lists. (Note that "c = d = []" assigns the same ' |
9126 |
| - 'object\n' |
9127 |
| - 'to both "c" and "d".)\n', |
| 9118 | + 'for mutable objects this is not allowed. For example, after "a = ' |
| 9119 | + '1; b\n' |
| 9120 | + '= 1", *a* and *b* may or may not refer to the same object with ' |
| 9121 | + 'the\n' |
| 9122 | + 'value one, depending on the implementation. This is because "int" ' |
| 9123 | + 'is\n' |
| 9124 | + 'an immutable type, so the reference to "1" can be reused. This\n' |
| 9125 | + 'behaviour depends on the implementation used, so should not be ' |
| 9126 | + 'relied\n' |
| 9127 | + 'upon, but is something to be aware of when making use of object\n' |
| 9128 | + 'identity tests. However, after "c = []; d = []", *c* and *d* are\n' |
| 9129 | + 'guaranteed to refer to two different, unique, newly created ' |
| 9130 | + 'empty\n' |
| 9131 | + 'lists. (Note that "e = f = []" assigns the *same* object to both ' |
| 9132 | + '*e*\n' |
| 9133 | + 'and *f*.)\n', |
9128 | 9134 | 'operator-summary': 'Operator precedence\n'
|
9129 | 9135 | '*******************\n'
|
9130 | 9136 | '\n'
|
@@ -13213,15 +13219,13 @@
|
13213 | 13219 | 'greater must be expressed with escapes.\n'
|
13214 | 13220 | '\n'
|
13215 | 13221 | 'Both string and bytes literals may optionally be prefixed with a\n'
|
13216 |
| - 'letter "\'r\'" or "\'R\'"; such strings are called *raw strings* ' |
13217 |
| - 'and treat\n' |
13218 |
| - 'backslashes as literal characters. As a result, in string ' |
13219 |
| - 'literals,\n' |
13220 |
| - '"\'\\U\'" and "\'\\u\'" escapes in raw strings are not treated ' |
13221 |
| - 'specially.\n' |
13222 |
| - 'Given that Python 2.x’s raw unicode literals behave differently ' |
13223 |
| - 'than\n' |
13224 |
| - 'Python 3.x’s the "\'ur\'" syntax is not supported.\n' |
| 13222 | + 'letter "\'r\'" or "\'R\'"; such constructs are called *raw ' |
| 13223 | + 'string\n' |
| 13224 | + 'literals* and *raw bytes literals* respectively and treat ' |
| 13225 | + 'backslashes\n' |
| 13226 | + 'as literal characters. As a result, in raw string literals, ' |
| 13227 | + '"\'\\U\'"\n' |
| 13228 | + 'and "\'\\u\'" escapes are not treated specially.\n' |
13225 | 13229 | '\n'
|
13226 | 13230 | 'Added in version 3.3: The "\'rb\'" prefix of raw bytes literals '
|
13227 | 13231 | 'has been\n'
|
|
14115 | 14119 | 'however removing a key and re-inserting it will add it to the end\n'
|
14116 | 14120 | 'instead of keeping its old place.\n'
|
14117 | 14121 | '\n'
|
14118 |
| - 'Dictionaries are mutable; they can be created by the "{...}" ' |
14119 |
| - 'notation\n' |
| 14122 | + 'Dictionaries are mutable; they can be created by the "{}" notation\n' |
14120 | 14123 | '(see section Dictionary displays).\n'
|
14121 | 14124 | '\n'
|
14122 | 14125 | 'The extension modules "dbm.ndbm" and "dbm.gnu" provide additional\n'
|
|
14588 | 14591 | ' "__static_attributes__"\n'
|
14589 | 14592 | ' A tuple containing names of attributes of this class which '
|
14590 | 14593 | 'are\n'
|
14591 |
| - ' accessed through "self.X" from any function in its body.\n' |
| 14594 | + ' assigned through "self.X" from any function in its body.\n' |
14592 | 14595 | '\n'
|
14593 | 14596 | ' "__firstlineno__"\n'
|
14594 | 14597 | ' The line number of the first line of the class definition,\n'
|
|
16125 | 16128 | '| | also removes it from '
|
16126 | 16129 | '*s* | |\n'
|
16127 | 16130 | '+--------------------------------+----------------------------------+-----------------------+\n'
|
16128 |
| - '| "s.remove(x)" | remove the first item from ' |
16129 |
| - '*s* | (3) |\n' |
| 16131 | + '| "s.remove(x)" | removes the first item from ' |
| 16132 | + '*s* | (3) |\n' |
16130 | 16133 | '| | where "s[i]" is equal to '
|
16131 | 16134 | '*x* | |\n'
|
16132 | 16135 | '+--------------------------------+----------------------------------+-----------------------+\n'
|
|
16590 | 16593 | '| | also removes it from '
|
16591 | 16594 | '*s* | |\n'
|
16592 | 16595 | '+--------------------------------+----------------------------------+-----------------------+\n'
|
16593 |
| - '| "s.remove(x)" | remove the first item ' |
16594 |
| - 'from *s* | (3) |\n' |
| 16596 | + '| "s.remove(x)" | removes the first ' |
| 16597 | + 'item from *s* | (3) |\n' |
16595 | 16598 | '| | where "s[i]" is equal '
|
16596 | 16599 | 'to *x* | |\n'
|
16597 | 16600 | '+--------------------------------+----------------------------------+-----------------------+\n'
|
|
0 commit comments