mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
Python 3.12.0a2
This commit is contained in:
parent
db115682bd
commit
3b9d793efc
107 changed files with 1134 additions and 293 deletions
|
@ -1,5 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Autogenerated by Sphinx on Tue Oct 25 00:07:40 2022
|
||||
# Autogenerated by Sphinx on Mon Nov 14 12:13:19 2022
|
||||
topics = {'assert': 'The "assert" statement\n'
|
||||
'**********************\n'
|
||||
'\n'
|
||||
|
@ -358,7 +358,7 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'yield_expression)]\n'
|
||||
'\n'
|
||||
'The difference from normal Assignment statements is that only '
|
||||
'single\n'
|
||||
'a single\n'
|
||||
'target is allowed.\n'
|
||||
'\n'
|
||||
'For simple names as assignment targets, if in class or module '
|
||||
|
@ -408,12 +408,13 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'analysis\n'
|
||||
' tools and IDEs.\n'
|
||||
'\n'
|
||||
'Changed in version 3.8: Now annotated assignments allow same\n'
|
||||
'expressions in the right hand side as the regular '
|
||||
'assignments.\n'
|
||||
'Previously, some expressions (like un-parenthesized tuple '
|
||||
'expressions)\n'
|
||||
'caused a syntax error.\n',
|
||||
'Changed in version 3.8: Now annotated assignments allow the '
|
||||
'same\n'
|
||||
'expressions in the right hand side as regular assignments. '
|
||||
'Previously,\n'
|
||||
'some expressions (like un-parenthesized tuple expressions) '
|
||||
'caused a\n'
|
||||
'syntax error.\n',
|
||||
'async': 'Coroutines\n'
|
||||
'**********\n'
|
||||
'\n'
|
||||
|
@ -7320,7 +7321,7 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'the clauses had been separated out into individual import '
|
||||
'statements.\n'
|
||||
'\n'
|
||||
'The details of the first step, finding and loading modules are\n'
|
||||
'The details of the first step, finding and loading modules, are\n'
|
||||
'described in greater detail in the section on the import system, '
|
||||
'which\n'
|
||||
'also describes the various types of packages and modules that can '
|
||||
|
@ -11314,6 +11315,10 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'*start* and\n'
|
||||
' *end* are interpreted as in slice notation.\n'
|
||||
'\n'
|
||||
' If *sub* is empty, returns the number of empty strings '
|
||||
'between\n'
|
||||
' characters which is the length of the string plus one.\n'
|
||||
'\n'
|
||||
"str.encode(encoding='utf-8', errors='strict')\n"
|
||||
'\n'
|
||||
' Return an encoded version of the string as a bytes '
|
||||
|
@ -12360,10 +12365,12 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'2. As in Standard C, up to three octal digits are accepted.\n'
|
||||
'\n'
|
||||
' Changed in version 3.11: Octal escapes with value larger than\n'
|
||||
' "0o377" produce a "DeprecationWarning". In a future Python '
|
||||
'version\n'
|
||||
' they will be a "SyntaxWarning" and eventually a '
|
||||
'"SyntaxError".\n'
|
||||
' "0o377" produce a "DeprecationWarning".\n'
|
||||
'\n'
|
||||
' Changed in version 3.12: Octal escapes with value larger than\n'
|
||||
' "0o377" produce a "SyntaxWarning". In a future Python version '
|
||||
'they\n'
|
||||
' will be eventually a "SyntaxError".\n'
|
||||
'\n'
|
||||
'3. Unlike in Standard C, exactly two hex digits are required.\n'
|
||||
'\n'
|
||||
|
@ -12398,9 +12405,13 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'\n'
|
||||
' Changed in version 3.6: Unrecognized escape sequences produce '
|
||||
'a\n'
|
||||
' "DeprecationWarning". In a future Python version they will be '
|
||||
' "DeprecationWarning".\n'
|
||||
'\n'
|
||||
' Changed in version 3.12: Unrecognized escape sequences produce '
|
||||
'a\n'
|
||||
' "SyntaxWarning" and eventually a "SyntaxError".\n'
|
||||
' "SyntaxWarning". In a future Python version they will be '
|
||||
'eventually\n'
|
||||
' a "SyntaxError".\n'
|
||||
'\n'
|
||||
'Even in a raw literal, quotes can be escaped with a backslash, '
|
||||
'but the\n'
|
||||
|
@ -13974,17 +13985,11 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'dictionaries or\n'
|
||||
'other mutable types (that are compared by value rather than '
|
||||
'by object\n'
|
||||
'identity) may not be used as keys. Numeric types used for '
|
||||
'keys obey\n'
|
||||
'the normal rules for numeric comparison: if two numbers '
|
||||
'compare equal\n'
|
||||
'(such as "1" and "1.0") then they can be used '
|
||||
'interchangeably to index\n'
|
||||
'the same dictionary entry. (Note however, that since '
|
||||
'computers store\n'
|
||||
'floating-point numbers as approximations it is usually '
|
||||
'unwise to use\n'
|
||||
'them as dictionary keys.)\n'
|
||||
'identity) may not be used as keys. Values that compare equal '
|
||||
'(such as\n'
|
||||
'"1", "1.0", and "True") can be used interchangeably to index '
|
||||
'the same\n'
|
||||
'dictionary entry.\n'
|
||||
'\n'
|
||||
'class dict(**kwargs)\n'
|
||||
'class dict(mapping, **kwargs)\n'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue