mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Python 3.13.0rc2
This commit is contained in:
parent
72cdd2ade6
commit
ec61006963
79 changed files with 787 additions and 175 deletions
|
@ -1,5 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Autogenerated by Sphinx on Wed Jul 31 20:10:37 2024
|
||||
# Autogenerated by Sphinx on Fri Sep 6 23:12:24 2024
|
||||
# as part of the release process.
|
||||
topics = {'assert': 'The "assert" statement\n'
|
||||
'**********************\n'
|
||||
|
@ -3101,7 +3101,7 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
' | "None"\n'
|
||||
' | "True"\n'
|
||||
' | "False"\n'
|
||||
' | signed_number: NUMBER | "-" NUMBER\n'
|
||||
' signed_number ::= ["-"] NUMBER\n'
|
||||
'\n'
|
||||
'The rule "strings" and the token "NUMBER" are defined in the '
|
||||
'standard\n'
|
||||
|
@ -9115,16 +9115,22 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'types, operations that compute new values may actually return a\n'
|
||||
'reference to any existing object with the same type and value, '
|
||||
'while\n'
|
||||
'for mutable objects this is not allowed. E.g., after "a = 1; b = '
|
||||
'1",\n'
|
||||
'"a" and "b" may or may not refer to the same object with the '
|
||||
'value\n'
|
||||
'one, depending on the implementation, but after "c = []; d = []", '
|
||||
'"c"\n'
|
||||
'and "d" are guaranteed to refer to two different, unique, newly\n'
|
||||
'created empty lists. (Note that "c = d = []" assigns the same '
|
||||
'object\n'
|
||||
'to both "c" and "d".)\n',
|
||||
'for mutable objects this is not allowed. For example, after "a = '
|
||||
'1; b\n'
|
||||
'= 1", *a* and *b* may or may not refer to the same object with '
|
||||
'the\n'
|
||||
'value one, depending on the implementation. This is because "int" '
|
||||
'is\n'
|
||||
'an immutable type, so the reference to "1" can be reused. This\n'
|
||||
'behaviour depends on the implementation used, so should not be '
|
||||
'relied\n'
|
||||
'upon, but is something to be aware of when making use of object\n'
|
||||
'identity tests. However, after "c = []; d = []", *c* and *d* are\n'
|
||||
'guaranteed to refer to two different, unique, newly created '
|
||||
'empty\n'
|
||||
'lists. (Note that "e = f = []" assigns the *same* object to both '
|
||||
'*e*\n'
|
||||
'and *f*.)\n',
|
||||
'operator-summary': 'Operator precedence\n'
|
||||
'*******************\n'
|
||||
'\n'
|
||||
|
@ -13213,15 +13219,13 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'greater must be expressed with escapes.\n'
|
||||
'\n'
|
||||
'Both string and bytes literals may optionally be prefixed with a\n'
|
||||
'letter "\'r\'" or "\'R\'"; such strings are called *raw strings* '
|
||||
'and treat\n'
|
||||
'backslashes as literal characters. As a result, in string '
|
||||
'literals,\n'
|
||||
'"\'\\U\'" and "\'\\u\'" escapes in raw strings are not treated '
|
||||
'specially.\n'
|
||||
'Given that Python 2.x’s raw unicode literals behave differently '
|
||||
'than\n'
|
||||
'Python 3.x’s the "\'ur\'" syntax is not supported.\n'
|
||||
'letter "\'r\'" or "\'R\'"; such constructs are called *raw '
|
||||
'string\n'
|
||||
'literals* and *raw bytes literals* respectively and treat '
|
||||
'backslashes\n'
|
||||
'as literal characters. As a result, in raw string literals, '
|
||||
'"\'\\U\'"\n'
|
||||
'and "\'\\u\'" escapes are not treated specially.\n'
|
||||
'\n'
|
||||
'Added in version 3.3: The "\'rb\'" prefix of raw bytes literals '
|
||||
'has been\n'
|
||||
|
@ -14115,8 +14119,7 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'however removing a key and re-inserting it will add it to the end\n'
|
||||
'instead of keeping its old place.\n'
|
||||
'\n'
|
||||
'Dictionaries are mutable; they can be created by the "{...}" '
|
||||
'notation\n'
|
||||
'Dictionaries are mutable; they can be created by the "{}" notation\n'
|
||||
'(see section Dictionary displays).\n'
|
||||
'\n'
|
||||
'The extension modules "dbm.ndbm" and "dbm.gnu" provide additional\n'
|
||||
|
@ -14588,7 +14591,7 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
' "__static_attributes__"\n'
|
||||
' A tuple containing names of attributes of this class which '
|
||||
'are\n'
|
||||
' accessed through "self.X" from any function in its body.\n'
|
||||
' assigned through "self.X" from any function in its body.\n'
|
||||
'\n'
|
||||
' "__firstlineno__"\n'
|
||||
' The line number of the first line of the class definition,\n'
|
||||
|
@ -16125,8 +16128,8 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'| | also removes it from '
|
||||
'*s* | |\n'
|
||||
'+--------------------------------+----------------------------------+-----------------------+\n'
|
||||
'| "s.remove(x)" | remove the first item from '
|
||||
'*s* | (3) |\n'
|
||||
'| "s.remove(x)" | removes the first item from '
|
||||
'*s* | (3) |\n'
|
||||
'| | where "s[i]" is equal to '
|
||||
'*x* | |\n'
|
||||
'+--------------------------------+----------------------------------+-----------------------+\n'
|
||||
|
@ -16590,8 +16593,8 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'| | also removes it from '
|
||||
'*s* | |\n'
|
||||
'+--------------------------------+----------------------------------+-----------------------+\n'
|
||||
'| "s.remove(x)" | remove the first item '
|
||||
'from *s* | (3) |\n'
|
||||
'| "s.remove(x)" | removes the first '
|
||||
'item from *s* | (3) |\n'
|
||||
'| | where "s[i]" is equal '
|
||||
'to *x* | |\n'
|
||||
'+--------------------------------+----------------------------------+-----------------------+\n'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue