mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +00:00
Python 3.10.5
This commit is contained in:
parent
fd247db57a
commit
f377153967
82 changed files with 856 additions and 215 deletions
|
@ -1,5 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Autogenerated by Sphinx on Wed Mar 23 20:11:40 2022
|
||||
# Autogenerated by Sphinx on Mon Jun 6 12:53:10 2022
|
||||
topics = {'assert': 'The "assert" statement\n'
|
||||
'**********************\n'
|
||||
'\n'
|
||||
|
@ -93,11 +93,7 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
' optionally in parentheses, the object is assigned to that '
|
||||
'target.\n'
|
||||
'\n'
|
||||
'* Else: The object must be an iterable with the same number of '
|
||||
'items\n'
|
||||
' as there are targets in the target list, and the items are '
|
||||
'assigned,\n'
|
||||
' from left to right, to the corresponding targets.\n'
|
||||
'* Else:\n'
|
||||
'\n'
|
||||
' * If the target list contains one target prefixed with an '
|
||||
'asterisk,\n'
|
||||
|
@ -4812,7 +4808,10 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'is\n'
|
||||
'applied to separating the commands; the input is split at the '
|
||||
'first\n'
|
||||
'";;" pair, even if it is in the middle of a quoted string.\n'
|
||||
'";;" pair, even if it is in the middle of a quoted string. A\n'
|
||||
'workaround for strings with double semicolons is to use '
|
||||
'implicit\n'
|
||||
'string concatenation "\';\'\';\'" or "";"";"".\n'
|
||||
'\n'
|
||||
'If a file ".pdbrc" exists in the user’s home directory or in '
|
||||
'the\n'
|
||||
|
@ -7269,12 +7268,12 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'Examples:\n'
|
||||
'\n'
|
||||
' import foo # foo imported and bound locally\n'
|
||||
' import foo.bar.baz # foo.bar.baz imported, foo bound '
|
||||
'locally\n'
|
||||
' import foo.bar.baz as fbb # foo.bar.baz imported and bound as '
|
||||
'fbb\n'
|
||||
' from foo.bar import baz # foo.bar.baz imported and bound as '
|
||||
'baz\n'
|
||||
' import foo.bar.baz # foo, foo.bar, and foo.bar.baz '
|
||||
'imported, foo bound locally\n'
|
||||
' import foo.bar.baz as fbb # foo, foo.bar, and foo.bar.baz '
|
||||
'imported, foo.bar.baz bound as fbb\n'
|
||||
' from foo.bar import baz # foo, foo.bar, and foo.bar.baz '
|
||||
'imported, foo.bar.baz bound as baz\n'
|
||||
' from foo import attr # foo imported and foo.attr bound as '
|
||||
'attr\n'
|
||||
'\n'
|
||||
|
@ -8189,7 +8188,7 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'| "x(arguments...)", "x.attribute" | '
|
||||
'attribute reference |\n'
|
||||
'+-------------------------------------------------+---------------------------------------+\n'
|
||||
'| "await" "x" | '
|
||||
'| "await x" | '
|
||||
'Await expression |\n'
|
||||
'+-------------------------------------------------+---------------------------------------+\n'
|
||||
'| "**" | '
|
||||
|
@ -8225,7 +8224,7 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'| ">=", "!=", "==" | '
|
||||
'tests and identity tests |\n'
|
||||
'+-------------------------------------------------+---------------------------------------+\n'
|
||||
'| "not" "x" | '
|
||||
'| "not x" | '
|
||||
'Boolean NOT |\n'
|
||||
'+-------------------------------------------------+---------------------------------------+\n'
|
||||
'| "and" | '
|
||||
|
@ -11988,9 +11987,13 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
' >>> "they\'re bill\'s friends from the UK".title()\n'
|
||||
' "They\'Re Bill\'S Friends From The Uk"\n'
|
||||
'\n'
|
||||
' A workaround for apostrophes can be constructed using '
|
||||
'regular\n'
|
||||
' expressions:\n'
|
||||
' The "string.capwords()" function does not have this '
|
||||
'problem, as it\n'
|
||||
' splits words on spaces only.\n'
|
||||
'\n'
|
||||
' Alternatively, a workaround for apostrophes can be '
|
||||
'constructed\n'
|
||||
' using regular expressions:\n'
|
||||
'\n'
|
||||
' >>> import re\n'
|
||||
' >>> def titlecase(s):\n'
|
||||
|
@ -12112,12 +12115,15 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'single quotes ("\'") or double quotes ("""). They can also be '
|
||||
'enclosed\n'
|
||||
'in matching groups of three single or double quotes (these are\n'
|
||||
'generally referred to as *triple-quoted strings*). The '
|
||||
'backslash\n'
|
||||
'("\\") character is used to escape characters that otherwise have '
|
||||
'a\n'
|
||||
'special meaning, such as newline, backslash itself, or the quote\n'
|
||||
'generally referred to as *triple-quoted strings*). The backslash '
|
||||
'("\\")\n'
|
||||
'character is used to give special meaning to otherwise ordinary\n'
|
||||
'characters like "n", which means ‘newline’ when escaped ("\\n"). '
|
||||
'It can\n'
|
||||
'also be used to escape characters that otherwise have a special\n'
|
||||
'meaning, such as newline, backslash itself, or the quote '
|
||||
'character.\n'
|
||||
'See escape sequences below for examples.\n'
|
||||
'\n'
|
||||
'Bytes literals are always prefixed with "\'b\'" or "\'B\'"; they '
|
||||
'produce\n'
|
||||
|
@ -13735,14 +13741,6 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'unwise to use\n'
|
||||
'them as dictionary keys.)\n'
|
||||
'\n'
|
||||
'Dictionaries can be created by placing a comma-separated '
|
||||
'list of "key:\n'
|
||||
'value" pairs within braces, for example: "{\'jack\': 4098, '
|
||||
"'sjoerd':\n"
|
||||
'4127}" or "{4098: \'jack\', 4127: \'sjoerd\'}", or by the '
|
||||
'"dict"\n'
|
||||
'constructor.\n'
|
||||
'\n'
|
||||
'class dict(**kwargs)\n'
|
||||
'class dict(mapping, **kwargs)\n'
|
||||
'class dict(iterable, **kwargs)\n'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue