mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Python 3.9.13
This commit is contained in:
parent
f82b32410b
commit
6de2ca5339
56 changed files with 576 additions and 152 deletions
|
@ -1,5 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Autogenerated by Sphinx on Wed Mar 23 22:08:02 2022
|
||||
# Autogenerated by Sphinx on Tue May 17 12:57:36 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'
|
||||
|
@ -3980,7 +3976,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'
|
||||
|
@ -6402,12 +6401,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'
|
||||
|
@ -11091,9 +11090,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'
|
||||
|
@ -11215,12 +11218,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'
|
||||
|
@ -12788,14 +12794,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