8000 Python 3.11.0b1 · python/cpython@0e5fe7f · GitHub
[go: up one dir, main page]

Skip to content

Commit 0e5fe7f

Browse files
committed
Python 3.11.0b1
1 parent 3f61db4 commit 0e5fe7f

File tree

212 files changed

+2171
-440
lines changed
  • Security
  • Tests
  • Tools-Demos
  • Windows
  • macOS
  • Some content is hidden

    Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

    212 files changed

    +2171
    -440
    lines changed

    Lib/pydoc_data/topics.py

    Lines changed: 26 additions & 23 deletions
    Original file line numberDiff line numberDiff line change
    @@ -1,5 +1,5 @@
    11
    # -*- coding: utf-8 -*-
    2-
    # Autogenerated by Sphinx on Tue Apr 5 20:53:43 2022
    2+
    # Autogenerated by Sphinx on Fri May 6 23:53:34 2022
    33
    topics = {'assert': 'The "assert" statement\n'
    44
    '**********************\n'
    55
    '\n'
    @@ -6222,13 +6222,14 @@
    62226222
    '+-----------+------------------------------------------------------------+\n'
    62236223
    '\n'
    62246224
    'The "\'z\'" option coerces negative zero floating-point '
    6225-
    'values to positive\n'
    6226-
    'zero after rounding to the format precision. This option '
    6227-
    'is only valid for\n'
    6228-
    'floating-point presentation types.\n'
    6225+
    'values to\n'
    6226+
    'positive zero after rounding to the format precision. This '
    6227+
    'option is\n'
    6228+
    'only valid for floating-point presentation types.\n'
    62296229
    '\n'
    62306230
    'Changed in version 3.11: Added the "\'z\'" option (see also '
    6231-
    '**PEP 682**).\n'
    6231+
    '**PEP\n'
    6232+
    '682**).\n'
    62326233
    '\n'
    62336234
    'The "\'#\'" option causes the “alternate form” to be used '
    62346235
    'for the\n'
    @@ -7329,12 +7330,12 @@
    73297330
    'Examples:\n'
    73307331
    '\n'
    73317332
    ' import foo # foo imported and bound locally\n'
    7332-
    ' import foo.bar.baz # foo.bar.baz imported, foo bound '
    7333-
    'locally\n'
    7334-
    ' import foo.bar.baz as fbb # foo.bar.baz imported and bound as '
    7335-
    'fbb\n'
    7336-
    ' from foo.bar import baz # foo.bar.baz imported and bound as '
    7337-
    'baz\n'
    7333+
    ' import foo.bar.baz # foo, foo.bar, and foo.bar.baz '
    7334+
    'imported, foo bound locally\n'
    7335+
    ' import foo.bar.baz as fbb # foo, foo.bar, and foo.bar.baz '
    7336+
    'imported, foo.bar.baz bound as fbb\n'
    7337+
    ' from foo.bar import baz # foo, foo.bar, and foo.bar.baz '
    7338+
    'imported, foo.bar.baz bound as baz\n'
    73387339
    ' from foo import attr # foo imported and foo.attr bound as '
    73397340
    'attr\n'
    73407341
    '\n'
    @@ -12062,9 +12063,13 @@
    1206212063
    ' >>> "they\'re bill\'s friends from the UK".title()\n'
    1206312064
    ' "They\'Re Bill\'S Friends From The Uk"\n'
    1206412065
    '\n'
    12065-
    ' A workaround for apostrophes can be constructed using '
    12066-
    'regular\n'
    12067-
    ' expressions:\n'
    12066+
    ' The "string.capwords()" function does not have this '
    12067+
    'problem, as it\n'
    12068+
    ' splits words on spaces only.\n'
    12069+
    '\n'
    12070+
    ' Alternatively, a workaround for apostrophes can be '
    12071+
    'constructed\n'
    12072+
    ' using regular expressions:\n'
    1206812073
    '\n'
    1206912074
    ' >>> import re\n'
    1207012075
    ' >>> def titlecase(s):\n'
    @@ -12314,6 +12319,12 @@
    1231412319
    '\n'
    1231512320
    '1. As in Standard C, up to three octal digits are accepted.\n'
    1231612321
    '\n'
    12322+
    ' Changed in version 3.11: Octal escapes with value larger than\n'
    12323+
    ' "0o377" produce a "DeprecationWarning". In a future Python '
    12324+
    'version\n'
    12325+
    ' they will be a "SyntaxWarning" and eventually a '
    12326+
    '"SyntaxError".\n'
    12327+
    '\n'
    1231712328
    '2. Unlike in Standard C, exactly two hex digits are required.\n'
    1231812329
    '\n'
    1231912330
    '3. In a bytes literal, hexadecimal and octal escapes denote the '
    @@ -13909,14 +13920,6 @@
    1390913920
    'unwise to use\n'
    13 7DAC 91013921
    'them as dictionary keys.)\n'
    1391113922
    '\n'
    13912-
    'Dictionaries can be created by placing a comma-separated '
    13913-
    'list of "key:\n'
    13914-
    'value" pairs within braces, for example: "{\'jack\': 4098, '
    13915-
    "'sjoerd':\n"
    13916-
    '4127}" or "{4098: \'jack\', 4127: \'sjoerd\'}", or by the '
    13917-
    '"dict"\n'
    13918-
    'constructor.\n'
    13919-
    '\n'
    1392013923
    'class dict(**kwargs)\n'
    1392113924
    'class dict(mapping, **kwargs)\n'
    1392213925
    'class dict(iterable, **kwargs)\n'

    0 commit comments

    Comments
     (0)
    0