|
1 | 1 | # -*- coding: utf-8 -*-
|
2 |
| -# Autogenerated by Sphinx on Sun Dec 23 16:24:58 2018 |
| 2 | +# Autogenerated by Sphinx on Tue Mar 12 14:56:48 2019 |
3 | 3 | topics = {'assert': 'The "assert" statement\n'
|
4 | 4 | '**********************\n'
|
5 | 5 | '\n'
|
|
351 | 351 | 'Annotated assignment statements\n'
|
352 | 352 | '===============================\n'
|
353 | 353 | '\n'
|
354 |
| - 'Annotation assignment is the combination, in a single ' |
355 |
| - 'statement, of a\n' |
356 |
| - 'variable or attribute annotation and an optional assignment ' |
| 354 | + '*Annotation* assignment is the combination, in a single ' |
| 355 | + 'statement, of\n' |
| 356 | + 'a variable or attribute annotation and an optional assignment\n' |
357 | 357 | 'statement:\n'
|
358 | 358 | '\n'
|
359 | 359 | ' annotated_assignment_stmt ::= augtarget ":" expression ["=" '
|
|
962 | 962 | 'in a parent.)\n'
|
963 | 963 | '\n'
|
964 | 964 | 'The space saved over using *__dict__* can be '
|
965 |
| - 'significant.\n' |
| 965 | + 'significant. Attribute\n' |
| 966 | + 'lookup speed can be significantly improved as well.\n' |
966 | 967 | '\n'
|
967 | 968 | 'object.__slots__\n'
|
968 | 969 | '\n'
|
|
2667 | 2668 | 'passed\n'
|
2668 | 2669 | 'used keyword arguments.\n'
|
2669 | 2670 | '\n'
|
2670 |
| - 'Parameters may have annotations of the form “": expression"” ' |
2671 |
| - 'following\n' |
2672 |
| - 'the parameter name. Any parameter may have an annotation even ' |
2673 |
| - 'those\n' |
2674 |
| - 'of the form "*identifier" or "**identifier". Functions may ' |
2675 |
| - 'have\n' |
2676 |
| - '“return” annotation of the form “"-> expression"” after the ' |
2677 |
| - 'parameter\n' |
2678 |
| - 'list. These annotations can be any valid Python expression. ' |
2679 |
| - 'The\n' |
2680 |
| - 'presence of annotations does not change the semantics of a ' |
2681 |
| - 'function.\n' |
2682 |
| - 'The annotation values are available as values of a dictionary ' |
2683 |
| - 'keyed by\n' |
2684 |
| - 'the parameters’ names in the "__annotations__" attribute of the\n' |
2685 |
| - 'function object. If the "annotations" import from "__future__" ' |
2686 |
| - 'is\n' |
2687 |
| - 'used, annotations are preserved as strings at runtime which ' |
2688 |
| - 'enables\n' |
2689 |
| - 'postponed evaluation. Otherwise, they are evaluated when the ' |
2690 |
| - 'function\n' |
2691 |
| - 'definition is executed. In this case annotations may be ' |
2692 |
| - 'evaluated in\n' |
2693 |
| - 'a different order than they appear in the source code.\n' |
| 2671 | + 'Parameters may have an *annotation* of the form “": ' |
| 2672 | + 'expression"”\n' |
| 2673 | + 'following the parameter name. Any parameter may have an ' |
| 2674 | + 'annotation,\n' |
| 2675 | + 'even those of the form "*identifier" or "**identifier". ' |
| 2676 | + 'Functions may\n' |
| 2677 | + 'have “return” annotation of the form “"-> expression"” after ' |
| 2678 | + 'the\n' |
| 2679 | + 'parameter list. These annotations can be any valid Python ' |
| 2680 | + 'expression.\n' |
| 2681 | + 'The presence of annotations does not change the semantics of a\n' |
| 2682 | + 'function. The annotation values are available as values of a\n' |
| 2683 | + 'dictionary keyed by the parameters’ names in the ' |
| 2684 | + '"__annotations__"\n' |
| 2685 | + 'attribute of the function object. If the "annotations" import ' |
| 2686 | + 'from\n' |
| 2687 | + '"__future__" is used, annotations are preserved as strings at ' |
| 2688 | + 'runtime\n' |
| 2689 | + 'which enables postponed evaluation. Otherwise, they are ' |
| 2690 | + 'evaluated\n' |
| 2691 | + 'when the function definition is executed. In this case ' |
| 2692 | + 'annotations\n' |
| 2693 | + 'may be evaluated in a different order than they appear in the ' |
| 2694 | + 'source\n' |
| 2695 | + 'code.\n' |
2694 | 2696 | '\n'
|
2695 | 2697 | 'It is also possible to create anonymous functions (functions not '
|
2696 | 2698 | 'bound\n'
|
|
3612 | 3614 | 'running\n'
|
3613 | 3615 | 'without the debugger using the "continue" command.\n'
|
3614 | 3616 | '\n'
|
| 3617 | + 'New in version 3.7: The built-in "breakpoint()", when called ' |
| 3618 | + 'with\n' |
| 3619 | + 'defaults, can be used instead of "import pdb; pdb.set_trace()".\n' |
| 3620 | + '\n' |
3615 | 3621 | 'The typical usage to inspect a crashed program is:\n'
|
3616 | 3622 | '\n'
|
3617 | 3623 | ' >>> import pdb\n'
|
|
5690 | 5696 | 'passed\n'
|
5691 | 5697 | 'used keyword arguments.\n'
|
5692 | 5698 | '\n'
|
5693 |
| - 'Parameters may have annotations of the form “": expression"” ' |
5694 |
| - 'following\n' |
5695 |
| - 'the parameter name. Any parameter may have an annotation even ' |
5696 |
| - 'those\n' |
5697 |
| - 'of the form "*identifier" or "**identifier". Functions may ' |
5698 |
| - 'have\n' |
5699 |
| - '“return” annotation of the form “"-> expression"” after the ' |
5700 |
| - 'parameter\n' |
5701 |
| - 'list. These annotations can be any valid Python expression. ' |
5702 |
| - 'The\n' |
5703 |
| - 'presence of annotations does not change the semantics of a ' |
5704 |
| - 'function.\n' |
5705 |
| - 'The annotation values are available as values of a dictionary ' |
5706 |
| - 'keyed by\n' |
5707 |
| - 'the parameters’ names in the "__annotations__" attribute of the\n' |
5708 |
| - 'function object. If the "annotations" import from "__future__" ' |
5709 |
| - 'is\n' |
5710 |
| - 'used, annotations are preserved as strings at runtime which ' |
5711 |
| - 'enables\n' |
5712 |
| - 'postponed evaluation. Otherwise, they are evaluated when the ' |
5713 |
| - 'function\n' |
5714 |
| - 'definition is executed. In this case annotations may be ' |
5715 |
| - 'evaluated in\n' |
5716 |
| - 'a different order than they appear in the source code.\n' |
| 5699 | + 'Parameters may have an *annotation* of the form “": ' |
| 5700 | + 'expression"”\n' |
| 5701 | + 'following the parameter name. Any parameter may have an ' |
| 5702 | + 'annotation,\n' |
| 5703 | + 'even those of the form "*identifier" or "**identifier". ' |
| 5704 | + 'Functions may\n' |
| 5705 | + 'have “return” annotation of the form “"-> expression"” after ' |
| 5706 | + 'the\n' |
| 5707 | + 'parameter list. These annotations can be any valid Python ' |
| 5708 | + 'expression.\n' |
| 5709 | + 'The presence of annotations does not change the semantics of a\n' |
| 5710 | + 'function. The annotation values are available as values of a\n' |
| 5711 | + 'dictionary keyed by the parameters’ names in the ' |
| 5712 | + '"__annotations__"\n' |
| 5713 | + 'attribute of the function object. If the "annotations" import ' |
| 5714 | + 'from\n' |
| 5715 | + '"__future__" is used, annotations are preserved as strings at ' |
| 5716 | + 'runtime\n' |
| 5717 | + 'which enables postponed evaluation. Otherwise, they are ' |
| 5718 | + 'evaluated\n' |
| 5719 | + 'when the function definition is executed. In this case ' |
| 5720 | + 'annotations\n' |
| 5721 | + 'may be evaluated in a different order than they appear in the ' |
| 5722 | + 'source\n' |
| 5723 | + 'code.\n' |
5717 | 5724 | '\n'
|
5718 | 5725 | 'It is also possible to create anonymous functions (functions not '
|
5719 | 5726 | 'bound\n'
|
|
8566 | 8573 | '(unless explicitly declared in *__slots__* or available in a '
|
8567 | 8574 | 'parent.)\n'
|
8568 | 8575 | '\n'
|
8569 |
| - 'The space saved over using *__dict__* can be significant.\n' |
| 8576 | + 'The space saved over using *__dict__* can be significant. ' |
| 8577 | + 'Attribute\n' |
| 8578 | + 'lookup speed can be significantly improved as well.\n' |
8570 | 8579 | '\n'
|
8571 | 8580 | 'object.__slots__\n'
|
8572 | 8581 | '\n'
|
|
11555 | 11564 | 'Modules\n'
|
11556 | 11565 | ' Modules are a basic organizational unit of Python code, and are\n'
|
11557 | 11566 | ' created by the import system as invoked either by the "import"\n'
|
11558 |
| - ' statement (see "import"), or by calling functions such as\n' |
| 11567 | + ' statement, or by calling functions such as\n' |
11559 | 11568 | ' "importlib.import_module()" and built-in "__import__()". A '
|
11560 | 11569 | 'module\n'
|
11561 | 11570 | ' object has a namespace implemented by a dictionary object (this '
|
@@ -12147,11 +12156,11 @@
|
12147 | 12156 | '\n'
|
12148 | 12157 | ' Return a shallow copy of the dictionary.\n'
|
12149 | 12158 | '\n'
|
12150 |
| - ' classmethod fromkeys(seq[, value])\n' |
| 12159 | + ' classmethod fromkeys(iterable[, value])\n' |
12151 | 12160 | '\n'
|
12152 |
| - ' Create a new dictionary with keys from *seq* and ' |
12153 |
| - 'values set to\n' |
12154 |
| - ' *value*.\n' |
| 12161 | + ' Create a new dictionary with keys from *iterable* and ' |
| 12162 | + 'values set\n' |
| 12163 | + ' to *value*.\n' |
12155 | 12164 | '\n'
|
12156 | 12165 | ' "fromkeys()" is a class method that returns a new '
|
12157 | 12166 | 'dictionary.\n'
|
|
0 commit comments