diff options
Diffstat (limited to 'Lib/pydoc_data/topics.py')
-rw-r--r-- | Lib/pydoc_data/topics.py | 127 |
1 files changed, 68 insertions, 59 deletions
diff --git a/Lib/pydoc_data/topics.py b/Lib/pydoc_data/topics.py index 55fb1199f8..d9cd501e75 100644 --- a/Lib/pydoc_data/topics.py +++ b/Lib/pydoc_data/topics.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Autogenerated by Sphinx on Sun Dec 23 16:24:58 2018 +# Autogenerated by Sphinx on Tue Mar 12 14:56:48 2019 topics = {'assert': 'The "assert" statement\n' '**********************\n' '\n' @@ -351,9 +351,9 @@ topics = {'assert': 'The "assert" statement\n' 'Annotated assignment statements\n' '===============================\n' '\n' - 'Annotation assignment is the combination, in a single ' - 'statement, of a\n' - 'variable or attribute annotation and an optional assignment ' + '*Annotation* assignment is the combination, in a single ' + 'statement, of\n' + 'a variable or attribute annotation and an optional assignment\n' 'statement:\n' '\n' ' annotated_assignment_stmt ::= augtarget ":" expression ["=" ' @@ -962,7 +962,8 @@ topics = {'assert': 'The "assert" statement\n' 'in a parent.)\n' '\n' 'The space saved over using *__dict__* can be ' - 'significant.\n' + 'significant. Attribute\n' + 'lookup speed can be significantly improved as well.\n' '\n' 'object.__slots__\n' '\n' @@ -2667,30 +2668,31 @@ topics = {'assert': 'The "assert" statement\n' 'passed\n' 'used keyword arguments.\n' '\n' - 'Parameters may have annotations of the form “": expression"” ' - 'following\n' - 'the parameter name. Any parameter may have an annotation even ' - 'those\n' - 'of the form "*identifier" or "**identifier". Functions may ' - 'have\n' - '“return” annotation of the form “"-> expression"” after the ' - 'parameter\n' - 'list. These annotations can be any valid Python expression. ' - 'The\n' - 'presence of annotations does not change the semantics of a ' - 'function.\n' - 'The annotation values are available as values of a dictionary ' - 'keyed by\n' - 'the parameters’ names in the "__annotations__" attribute of the\n' - 'function object. If the "annotations" import from "__future__" ' - 'is\n' - 'used, annotations are preserved as strings at runtime which ' - 'enables\n' - 'postponed evaluation. Otherwise, they are evaluated when the ' - 'function\n' - 'definition is executed. In this case annotations may be ' - 'evaluated in\n' - 'a different order than they appear in the source code.\n' + 'Parameters may have an *annotation* of the form “": ' + 'expression"”\n' + 'following the parameter name. Any parameter may have an ' + 'annotation,\n' + 'even those of the form "*identifier" or "**identifier". ' + 'Functions may\n' + 'have “return” annotation of the form “"-> expression"” after ' + 'the\n' + 'parameter list. These annotations can be any valid Python ' + 'expression.\n' + 'The presence of annotations does not change the semantics of a\n' + 'function. The annotation values are available as values of a\n' + 'dictionary keyed by the parameters’ names in the ' + '"__annotations__"\n' + 'attribute of the function object. If the "annotations" import ' + 'from\n' + '"__future__" is used, annotations are preserved as strings at ' + 'runtime\n' + 'which enables postponed evaluation. Otherwise, they are ' + 'evaluated\n' + 'when the function definition is executed. In this case ' + 'annotations\n' + 'may be evaluated in a different order than they appear in the ' + 'source\n' + 'code.\n' '\n' 'It is also possible to create anonymous functions (functions not ' 'bound\n' @@ -3612,6 +3614,10 @@ topics = {'assert': 'The "assert" statement\n' 'running\n' 'without the debugger using the "continue" command.\n' '\n' + 'New in version 3.7: The built-in "breakpoint()", when called ' + 'with\n' + 'defaults, can be used instead of "import pdb; pdb.set_trace()".\n' + '\n' 'The typical usage to inspect a crashed program is:\n' '\n' ' >>> import pdb\n' @@ -5690,30 +5696,31 @@ topics = {'assert': 'The "assert" statement\n' 'passed\n' 'used keyword arguments.\n' '\n' - 'Parameters may have annotations of the form “": expression"” ' - 'following\n' - 'the parameter name. Any parameter may have an annotation even ' - 'those\n' - 'of the form "*identifier" or "**identifier". Functions may ' - 'have\n' - '“return” annotation of the form “"-> expression"” after the ' - 'parameter\n' - 'list. These annotations can be any valid Python expression. ' - 'The\n' - 'presence of annotations does not change the semantics of a ' - 'function.\n' - 'The annotation values are available as values of a dictionary ' - 'keyed by\n' - 'the parameters’ names in the "__annotations__" attribute of the\n' - 'function object. If the "annotations" import from "__future__" ' - 'is\n' - 'used, annotations are preserved as strings at runtime which ' - 'enables\n' - 'postponed evaluation. Otherwise, they are evaluated when the ' - 'function\n' - 'definition is executed. In this case annotations may be ' - 'evaluated in\n' - 'a different order than they appear in the source code.\n' + 'Parameters may have an *annotation* of the form “": ' + 'expression"”\n' + 'following the parameter name. Any parameter may have an ' + 'annotation,\n' + 'even those of the form "*identifier" or "**identifier". ' + 'Functions may\n' + 'have “return” annotation of the form “"-> expression"” after ' + 'the\n' + 'parameter list. These annotations can be any valid Python ' + 'expression.\n' + 'The presence of annotations does not change the semantics of a\n' + 'function. The annotation values are available as values of a\n' + 'dictionary keyed by the parameters’ names in the ' + '"__annotations__"\n' + 'attribute of the function object. If the "annotations" import ' + 'from\n' + '"__future__" is used, annotations are preserved as strings at ' + 'runtime\n' + 'which enables postponed evaluation. Otherwise, they are ' + 'evaluated\n' + 'when the function definition is executed. In this case ' + 'annotations\n' + 'may be evaluated in a different order than they appear in the ' + 'source\n' + 'code.\n' '\n' 'It is also possible to create anonymous functions (functions not ' 'bound\n' @@ -8566,7 +8573,9 @@ topics = {'assert': 'The "assert" statement\n' '(unless explicitly declared in *__slots__* or available in a ' 'parent.)\n' '\n' - 'The space saved over using *__dict__* can be significant.\n' + 'The space saved over using *__dict__* can be significant. ' + 'Attribute\n' + 'lookup speed can be significantly improved as well.\n' '\n' 'object.__slots__\n' '\n' @@ -11555,7 +11564,7 @@ topics = {'assert': 'The "assert" statement\n' 'Modules\n' ' Modules are a basic organizational unit of Python code, and are\n' ' created by the import system as invoked either by the "import"\n' - ' statement (see "import"), or by calling functions such as\n' + ' statement, or by calling functions such as\n' ' "importlib.import_module()" and built-in "__import__()". A ' 'module\n' ' object has a namespace implemented by a dictionary object (this ' @@ -12147,11 +12156,11 @@ topics = {'assert': 'The "assert" statement\n' '\n' ' Return a shallow copy of the dictionary.\n' '\n' - ' classmethod fromkeys(seq[, value])\n' + ' classmethod fromkeys(iterable[, value])\n' '\n' - ' Create a new dictionary with keys from *seq* and ' - 'values set to\n' - ' *value*.\n' + ' Create a new dictionary with keys from *iterable* and ' + 'values set\n' + ' to *value*.\n' '\n' ' "fromkeys()" is a class method that returns a new ' 'dictionary.\n' |