|
1 | 1 | # -*- coding: utf-8 -*-
|
2 |
| -# Autogenerated by Sphinx on Wed May 8 11:11:17 2024 |
| 2 | +# Autogenerated by Sphinx on Wed Jun 5 16:43:53 2024 |
3 | 3 | # as part of the release process.
|
4 | 4 | topics = {'assert': 'The "assert" statement\n'
|
5 | 5 | '**********************\n'
|
|
5034 | 5034 | ' 0\n'
|
5035 | 5035 | ' (Pdb)\n'
|
5036 | 5036 | '\n'
|
| 5037 | + 'Changed in version 3.13: The implementation of **PEP 667** means ' |
| 5038 | + 'that\n' |
| 5039 | + 'name assignments made via "pdb" will immediately affect the ' |
| 5040 | + 'active\n' |
| 5041 | + 'scope, even when running inside an *optimized scope*.\n' |
| 5042 | + '\n' |
5037 | 5043 | 'The module defines the following functions; each enters the '
|
5038 | 5044 | 'debugger\n'
|
5039 | 5045 | 'in a slightly different way:\n'
|
|
5245 | 5251 | '* "$_exception": the exception if the frame is raising an '
|
5246 | 5252 | 'exception\n'
|
5247 | 5253 | '\n'
|
5248 |
| - 'Added in version 3.12.\n' |
| 5254 | + 'Added in version 3.12: Added the *convenience variable* ' |
| 5255 | + 'feature.\n' |
5249 | 5256 | '\n'
|
5250 | 5257 | 'If a file ".pdbrc" exists in the user’s home directory or in '
|
5251 | 5258 | 'the\n'
|
|
5620 | 5627 | '\n'
|
5621 | 5628 | 'interact\n'
|
5622 | 5629 | '\n'
|
5623 |
| - ' Start an interactive interpreter (using the "code" module) ' |
5624 |
| - 'whose\n' |
5625 |
| - ' global namespace contains all the (global and local) names ' |
5626 |
| - 'found in\n' |
5627 |
| - ' the current scope. Use "exit()" or "quit()" to exit the ' |
5628 |
| - 'interpreter\n' |
5629 |
| - ' and return to the debugger.\n' |
| 5630 | + ' Start an interactive interpreter (using the "code" module) in ' |
| 5631 | + 'a new\n' |
| 5632 | + ' global namespace initialised from the local and global ' |
| 5633 | + 'namespaces\n' |
| 5634 | + ' for the current scope. Use "exit()" or "quit()" to exit the\n' |
| 5635 | + ' interpreter and return to the debugger.\n' |
5630 | 5636 | '\n'
|
5631 | 5637 | ' Note:\n'
|
5632 | 5638 | '\n'
|
5633 |
| - ' Because interact creates a new global namespace with the ' |
5634 |
| - 'current\n' |
5635 |
| - ' global and local namespace for execution, assignment to ' |
5636 |
| - 'variables\n' |
5637 |
| - ' will not affect the original namespaces. However, ' |
5638 |
| - 'modification to\n' |
5639 |
| - ' the mutable objects will be reflected in the original ' |
5640 |
| - 'namespaces.\n' |
| 5639 | + ' As "interact" creates a new dedicated namespace for code\n' |
| 5640 | + ' execution, assignments to variables will not affect the ' |
| 5641 | + 'original\n' |
| 5642 | + ' namespaces. However, modifications to any referenced ' |
| 5643 | + 'mutable\n' |
| 5644 | + ' objects will be reflected in the original namespaces as ' |
| 5645 | + 'usual.\n' |
5641 | 5646 | '\n'
|
5642 | 5647 | ' Added in version 3.2.\n'
|
5643 | 5648 | '\n'
|
|
12362 | 12367 | 'the\n'
|
12363 | 12368 | ' "LC_NUMERIC" locale in some cases.\n'
|
12364 | 12369 | '\n'
|
12365 |
| - 'str.format_map(mapping)\n' |
| 12370 | + 'str.format_map(mapping, /)\n' |
12366 | 12371 | '\n'
|
12367 | 12372 | ' Similar to "str.format(**mapping)", except that '
|
12368 | 12373 | '"mapping" is used\n'
|
@@ -14766,10 +14771,10 @@
|
14766 | 14771 | ' The iterator returns "tuple"s containing the "(start_line,\n'
|
14767 | 14772 | ' end_line, start_column, end_column)". The *i-th* tuple '
|
14768 | 14773 | 'corresponds\n'
|
14769 |
| - ' to the position of the source code that compiled to the *i-th*\n' |
14770 |
| - ' instruction. Column information is 0-indexed utf-8 byte offsets ' |
14771 |
| - 'on\n' |
14772 |
| - ' the given source line.\n' |
| 14774 | + ' to the position of the source code that compiled to the *i-th* ' |
| 14775 | + 'code\n' |
| 14776 | + ' unit. Column information is 0-indexed utf-8 byte offsets on the\n' |
| 14777 | + ' given source line.\n' |
14773 | 14778 | '\n'
|
14774 | 14779 | ' This positional information can be missing. A non-exhaustive '
|
14775 | 14780 | 'lists\n'
|
@@ -14894,16 +14899,16 @@
|
14894 | 14899 | '| | '
|
14895 | 14900 | '""f_code"". |\n'
|
14896 | 14901 | '+----------------------------------------------------+----------------------------------------------------+\n'
|
14897 |
| - '| frame.f_locals | The ' |
14898 |
| - 'dictionary used by the frame to look up local |\n' |
| 14902 | + '| frame.f_locals | The mapping ' |
| 14903 | + 'used by the frame to look up local |\n' |
14899 | 14904 | '| | variables. '
|
14900 |
| - 'If the frame refers to a function or |\n' |
14901 |
| - '| | ' |
14902 |
| - 'comprehension, this may return a write- through |\n' |
14903 |
| - '| | proxy ' |
14904 |
| - 'object. Changed in version 3.13: Return a |\n' |
14905 |
| - '| | proxy for ' |
14906 |
| - 'functions and comprehensions. |\n' |
| 14905 | + 'If the frame refers to an *optimized |\n' |
| 14906 | + '| | scope*, this ' |
| 14907 | + 'may return a write-through proxy |\n' |
| 14908 | + '| | object. ' |
| 14909 | + 'Changed in version 3.13: Return a proxy |\n' |
| 14910 | + '| | for ' |
| 14911 | + 'optimized scopes. |\n' |
14907 | 14912 | '+----------------------------------------------------+----------------------------------------------------+\n'
|
14908 | 14913 | '| frame.f_globals | The '
|
14909 | 14914 | 'dictionary used by the frame to look up global |\n'
|
|
15312 | 15317 | '\n'
|
15313 | 15318 | ' Return a shallow copy of the dictionary.\n'
|
15314 | 15319 | '\n'
|
15315 |
| - ' classmethod fromkeys(iterable[, value])\n' |
| 15320 | + ' classmethod fromkeys(iterable, value=None)\n' |
15316 | 15321 | '\n'
|
15317 | 15322 | ' Create a new dictionary with keys from *iterable* and '
|
15318 | 15323 | 'values set\n'
|
|
15328 | 15333 | 'distinct\n'
|
15329 | 15334 | ' values, use a dict comprehension instead.\n'
|
15330 | 15335 | '\n'
|
15331 |
| - ' get(key[, default])\n' |
| 15336 | + ' get(key, default=None)\n' |
15332 | 15337 | '\n'
|
15333 | 15338 | ' Return the value for *key* if *key* is in the '
|
15334 | 15339 | 'dictionary, else\n'
|
|
15380 | 15385 | '\n'
|
15381 | 15386 | ' Added in version 3.8.\n'
|
15382 | 15387 | '\n'
|
15383 |
| - ' setdefault(key[, default])\n' |
| 15388 | + ' setdefault(key, default=None)\n' |
15384 | 15389 | '\n'
|
15385 | 15390 | ' If *key* is in the dictionary, return its value. If '
|
15386 | 15391 | 'not, insert\n'
|
|
0 commit comments