mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Python 3.11.0b1
This commit is contained in:
parent
3f61db4756
commit
0e5fe7f9e9
212 changed files with 2171 additions and 440 deletions
|
@ -1,5 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Autogenerated by Sphinx on Tue Apr 5 20:53:43 2022
|
||||
# Autogenerated by Sphinx on Fri May 6 23:53:34 2022
|
||||
topics = {'assert': 'The "assert" statement\n'
|
||||
'**********************\n'
|
||||
'\n'
|
||||
|
@ -6222,13 +6222,14 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'+-----------+------------------------------------------------------------+\n'
|
||||
'\n'
|
||||
'The "\'z\'" option coerces negative zero floating-point '
|
||||
'values to positive\n'
|
||||
'zero after rounding to the format precision. This option '
|
||||
'is only valid for\n'
|
||||
'floating-point presentation types.\n'
|
||||
'values to\n'
|
||||
'positive zero after rounding to the format precision. This '
|
||||
'option is\n'
|
||||
'only valid for floating-point presentation types.\n'
|
||||
'\n'
|
||||
'Changed in version 3.11: Added the "\'z\'" option (see also '
|
||||
'**PEP 682**).\n'
|
||||
'**PEP\n'
|
||||
'682**).\n'
|
||||
'\n'
|
||||
'The "\'#\'" option causes the “alternate form” to be used '
|
||||
'for the\n'
|
||||
|
@ -7329,12 +7330,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'
|
||||
|
@ -12062,9 +12063,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'
|
||||
|
@ -12314,6 +12319,12 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'\n'
|
||||
'1. 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'
|
||||
'\n'
|
||||
'2. Unlike in Standard C, exactly two hex digits are required.\n'
|
||||
'\n'
|
||||
'3. In a bytes literal, hexadecimal and octal escapes denote the '
|
||||
|
@ -13909,14 +13920,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