|
1 | 1 | # -*- coding: utf-8 -*-
|
2 |
| -# Autogenerated by Sphinx on Tue Mar 7 22:42:28 2023 |
| 2 | +# Autogenerated by Sphinx on Tue Apr 4 17:52:21 2023 |
3 | 3 | topics = {'assert': 'The "assert" statement\n'
|
4 | 4 | '**********************\n'
|
5 | 5 | '\n'
|
|
1134 | 1134 | 'future, a\n'
|
1135 | 1135 | ' check may be added to prevent this.\n'
|
1136 | 1136 | '\n'
|
1137 |
| - '* Nonempty *__slots__* does not work for classes derived ' |
1138 |
| - 'from\n' |
1139 |
| - ' “variable-length” built-in types such as "int", ' |
1140 |
| - '"bytes" and "tuple".\n' |
| 1137 | + '* "TypeError" will be raised if nonempty *__slots__* are ' |
| 1138 | + 'defined for a\n' |
| 1139 | + ' class derived from a ""variable-length" built-in type" ' |
| 1140 | + 'such as\n' |
| 1141 | + ' "int", "bytes", and "tuple".\n' |
1141 | 1142 | '\n'
|
1142 | 1143 | '* Any non-string *iterable* may be assigned to '
|
1143 | 1144 | '*__slots__*.\n'
|
|
3072 | 3073 | 'AS\n'
|
3073 | 3074 | 'pattern binds the subject to the name on the right of the as '
|
3074 | 3075 | 'keyword\n'
|
3075 |
| - 'and succeeds. "capture_pattern" cannot be a a "_".\n' |
| 3076 | + 'and succeeds. "capture_pattern" cannot be a "_".\n' |
3076 | 3077 | '\n'
|
3077 | 3078 | 'In simple terms "P as NAME" will match with "P", and on success '
|
3078 | 3079 | 'it\n'
|
|
4675 | 4676 | 'scripts. For\n'
|
4676 | 4677 | 'example:\n'
|
4677 | 4678 | '\n'
|
4678 |
| - ' python3 -m pdb myscript.py\n' |
| 4679 | + ' python -m pdb myscript.py\n' |
4679 | 4680 | '\n'
|
4680 | 4681 | 'When invoked as a script, pdb will automatically enter '
|
4681 | 4682 | 'post-mortem\n'
|
|
4695 | 4696 | '\n'
|
4696 | 4697 | 'New in version 3.7: "pdb.py" now accepts a "-m" option that '
|
4697 | 4698 | 'execute\n'
|
4698 |
| - 'modules similar to the way "python3 -m" does. As with a script, ' |
| 4699 | + 'modules similar to the way "python -m" does. As with a script, ' |
4699 | 4700 | 'the\n'
|
4700 | 4701 | 'debugger will pause execution just before the first line of the\n'
|
4701 | 4702 | 'module.\n'
|
|
4759 | 4760 | 'object)\n'
|
4760 | 4761 | ' under debugger control. When "runeval()" returns, it returns '
|
4761 | 4762 | 'the\n'
|
4762 |
| - ' value of the expression. Otherwise this function is similar ' |
4763 |
| - 'to\n' |
| 4763 | + ' value of the *expression*. Otherwise this function is ' |
| 4764 | + 'similar to\n' |
4764 | 4765 | ' "run()".\n'
|
4765 | 4766 | '\n'
|
4766 | 4767 | 'pdb.runcall(function, *args, **kwds)\n'
|
|
4799 | 4800 | 'pdb.pm()\n'
|
4800 | 4801 | '\n'
|
4801 | 4802 | ' Enter post-mortem debugging of the traceback found in\n'
|
4802 |
| - ' "sys.last_exc".\n' |
| 4803 | + ' "sys.last_traceback".\n' |
4803 | 4804 | '\n'
|
4804 | 4805 | 'The "run*" functions and "set_trace()" are aliases for '
|
4805 | 4806 | 'instantiating\n'
|
|
5022 | 5023 | 'ignore bpnumber [count]\n'
|
5023 | 5024 | '\n'
|
5024 | 5025 | ' Set the ignore count for the given breakpoint number. If '
|
5025 |
| - 'count is\n' |
5026 |
| - ' omitted, the ignore count is set to 0. A breakpoint becomes ' |
5027 |
| - 'active\n' |
5028 |
| - ' when the ignore count is zero. When non-zero, the count is\n' |
5029 |
| - ' decremented each time the breakpoint is reached and the ' |
5030 |
| - 'breakpoint\n' |
5031 |
| - ' is not disabled and any associated condition evaluates to ' |
5032 |
| - 'true.\n' |
| 5026 | + '*count*\n' |
| 5027 | + ' is omitted, the ignore count is set to 0. A breakpoint ' |
| 5028 | + 'becomes\n' |
| 5029 | + ' active when the ignore count is zero. When non-zero, the ' |
| 5030 | + '*count*\n' |
| 5031 | + ' is decremented each time the breakpoint is reached and the\n' |
| 5032 | + ' breakpoint is not disabled and any associated condition ' |
| 5033 | + 'evaluates\n' |
| 5034 | + ' to true.\n' |
5033 | 5035 | '\n'
|
5034 | 5036 | 'condition bpnumber [condition]\n'
|
5035 | 5037 | '\n'
|
|
5079 | 5081 | ' breakpoint—which could have its own command list, leading to\n'
|
5080 | 5082 | ' ambiguities about which list to execute.\n'
|
5081 | 5083 | '\n'
|
5082 |
| - ' If you use the ‘silent’ command in the command list, the ' |
| 5084 | + ' If you use the "silent" command in the command list, the ' |
5083 | 5085 | 'usual\n'
|
5084 | 5086 | ' message about stopping at a breakpoint is not printed. This '
|
5085 | 5087 | 'may be\n'
|
|
5114 | 5116 | 'number\n'
|
5115 | 5117 | ' greater than the current one is reached.\n'
|
5116 | 5118 | '\n'
|
5117 |
| - ' With a line number, continue execution until a line with a ' |
5118 |
| - 'number\n' |
5119 |
| - ' greater or equal to that is reached. In both cases, also ' |
5120 |
| - 'stop when\n' |
5121 |
| - ' the current frame returns.\n' |
| 5119 | + ' With *lineno*, continue execution until a line with a number\n' |
| 5120 | + ' greater or equal to *lineno* is reached. In both cases, also ' |
| 5121 | + 'stop\n' |
| 5122 | + ' when the current frame returns.\n' |
5122 | 5123 | '\n'
|
5123 | 5124 | ' Changed in version 3.2: Allow giving an explicit line '
|
5124 | 5125 | 'number.\n'
|
|
5182 | 5183 | '\n'
|
5183 | 5184 | 'p expression\n'
|
5184 | 5185 | '\n'
|
5185 |
| - ' Evaluate the *expression* in the current context and print ' |
5186 |
| - 'its\n' |
5187 |
| - ' value.\n' |
| 5186 | + ' Evaluate *expression* in the current context and print its ' |
| 5187 | + 'value.\n' |
5188 | 5188 | '\n'
|
5189 | 5189 | ' Note:\n'
|
5190 | 5190 | '\n'
|
|
5194 | 5194 | '\n'
|
5195 | 5195 | 'pp expression\n'
|
5196 | 5196 | '\n'
|
5197 |
| - ' Like the "p" command, except the value of the expression is ' |
| 5197 | + ' Like the "p" command, except the value of *expression* is ' |
5198 | 5198 | 'pretty-\n'
|
5199 | 5199 | ' printed using the "pprint" module.\n'
|
5200 | 5200 | '\n'
|
5201 | 5201 | 'whatis expression\n'
|
5202 | 5202 | '\n'
|
5203 |
| - ' Print the type of the *expression*.\n' |
| 5203 | + ' Print the type of *expression*.\n' |
5204 | 5204 | '\n'
|
5205 | 5205 | 'source expression\n'
|
5206 | 5206 | '\n'
|
5207 |
| - ' Try to get source code for the given object and display it.\n' |
| 5207 | + ' Try to get source code of *expression* and display it.\n' |
5208 | 5208 | '\n'
|
5209 | 5209 | ' New in version 3.2.\n'
|
5210 | 5210 | '\n'
|
5211 | 5211 | 'display [expression]\n'
|
5212 | 5212 | '\n'
|
5213 |
| - ' Display the value of the expression if it changed, each time\n' |
| 5213 | + ' Display the value of *expression* if it changed, each time\n' |
5214 | 5214 | ' execution stops in the current frame.\n'
|
5215 | 5215 | '\n'
|
5216 |
| - ' Without expression, list all display expressions for the ' |
| 5216 | + ' Without *expression*, list all display expressions for the ' |
5217 | 5217 | 'current\n'
|
5218 | 5218 | ' frame.\n'
|
5219 | 5219 | '\n'
|
5220 | 5220 | ' New in version 3.2.\n'
|
5221 | 5221 | '\n'
|
5222 | 5222 | 'undisplay [expression]\n'
|
5223 | 5223 | '\n'
|
5224 |
| - ' Do not display the expression any more in the current frame.\n' |
5225 |
| - ' Without expression, clear all display expressions for the ' |
5226 |
| - 'current\n' |
5227 |
| - ' frame.\n' |
| 5224 | + ' Do not display *expression* anymore in the current frame. ' |
| 5225 | + 'Without\n' |
| 5226 | + ' *expression*, clear all display expressions for the current ' |
| 5227 | + 'frame.\n' |
5228 | 5228 | '\n'
|
5229 | 5229 | ' New in version 3.2.\n'
|
5230 | 5230 | '\n'
|
|
5240 | 5240 | '\n'
|
5241 | 5241 | 'alias [name [command]]\n'
|
5242 | 5242 | '\n'
|
5243 |
| - ' Create an alias called *name* that executes *command*. The ' |
5244 |
| - 'command\n' |
5245 |
| - ' must *not* be enclosed in quotes. Replaceable parameters can ' |
5246 |
| - 'be\n' |
5247 |
| - ' indicated by "%1", "%2", and so on, while "%*" is replaced by ' |
5248 |
| - 'all\n' |
5249 |
| - ' the parameters. If no command is given, the current alias ' |
5250 |
| - 'for\n' |
5251 |
| - ' *name* is shown. If no arguments are given, all aliases are ' |
5252 |
| - 'listed.\n' |
| 5243 | + ' Create an alias called *name* that executes *command*. The\n' |
| 5244 | + ' *command* must *not* be enclosed in quotes. Replaceable ' |
| 5245 | + 'parameters\n' |
| 5246 | + ' can be indicated by "%1", "%2", and so on, while "%*" is ' |
| 5247 | + 'replaced\n' |
| 5248 | + ' by all the parameters. If *command* is omitted, the current ' |
| 5249 | + 'alias\n' |
| 5250 | + ' for *name* is shown. If no arguments are given, all aliases ' |
| 5251 | + 'are\n' |
| 5252 | + ' listed.\n' |
5253 | 5253 | '\n'
|
5254 | 5254 | ' Aliases may be nested and can contain anything that can be '
|
5255 | 5255 | 'legally\n'
|
|
5268 | 5268 | ' in the ".pdbrc" file):\n'
|
5269 | 5269 | '\n'
|
5270 | 5270 | ' # Print instance variables (usage "pi classInst")\n'
|
5271 |
| - ' alias pi for k in %1.__dict__.keys(): ' |
5272 |
| - 'print("%1.",k,"=",%1.__dict__[k])\n' |
| 5271 | + ' alias pi for k in %1.__dict__.keys(): print(f"%1.{k} = ' |
| 5272 | + '{%1.__dict__[k]}")\n' |
5273 | 5273 | ' # Print instance variables in self\n'
|
5274 | 5274 | ' alias ps pi self\n'
|
5275 | 5275 | '\n'
|
5276 | 5276 | 'unalias name\n'
|
5277 | 5277 | '\n'
|
5278 |
| - ' Delete the specified alias.\n' |
| 5278 | + ' Delete the specified alias *name*.\n' |
5279 | 5279 | '\n'
|
5280 | 5280 | '! statement\n'
|
5281 | 5281 | '\n'
|
|
5295 | 5295 | 'run [args ...]\n'
|
5296 | 5296 | 'restart [args ...]\n'
|
5297 | 5297 | '\n'
|
5298 |
| - ' Restart the debugged Python program. If an argument is ' |
5299 |
| - 'supplied,\n' |
5300 |
| - ' it is split with "shlex" and the result is used as the new\n' |
5301 |
| - ' "sys.argv". History, breakpoints, actions and debugger ' |
5302 |
| - 'options are\n' |
5303 |
| - ' preserved. "restart" is an alias for "run".\n' |
| 5298 | + ' Restart the debugged Python program. If *args* is supplied, ' |
| 5299 | + 'it is\n' |
| 5300 | + ' split with "shlex" and the result is used as the new ' |
| 5301 | + '"sys.argv".\n' |
| 5302 | + ' History, breakpoints, actions and debugger options are ' |
| 5303 | + 'preserved.\n' |
| 5304 | + ' "restart" is an alias for "run".\n' |
5304 | 5305 | '\n'
|
5305 | 5306 | 'q(uit)\n'
|
5306 | 5307 | '\n'
|
|
5309 | 5310 | '\n'
|
5310 | 5311 | 'debug code\n'
|
5311 | 5312 | '\n'
|
5312 |
| - ' Enter a recursive debugger that steps through the code ' |
5313 |
| - 'argument\n' |
5314 |
| - ' (which is an arbitrary expression or statement to be executed ' |
5315 |
| - 'in\n' |
5316 |
| - ' the current environment).\n' |
| 5313 | + ' Enter a recursive debugger that steps through *code* (which ' |
| 5314 | + 'is an\n' |
| 5315 | + ' arbitrary expression or statement to be executed in the ' |
| 5316 | + 'current\n' |
| 5317 | + ' environment).\n' |
5317 | 5318 | '\n'
|
5318 | 5319 | 'retval\n'
|
5319 | 5320 | '\n'
|
|
6170 | 6171 | 'The general form of a *standard format specifier* is:\n'
|
6171 | 6172 | '\n'
|
6172 | 6173 | ' format_spec ::= '
|
6173 |
| - '[[fill]align][sign][z][#][0][width][grouping_option][.precision][type]\n' |
| 6174 | + '[[fill]align][sign]["z"]["#"]["0"][width][grouping_option]["." ' |
| 6175 | + 'precision][type]\n' |
6174 | 6176 | ' fill ::= <any character>\n'
|
6175 | 6177 | ' align ::= "<" | ">" | "=" | "^"\n'
|
6176 | 6178 | ' sign ::= "+" | "-" | " "\n'
|
|
9981 | 9983 | 'future, a\n'
|
9982 | 9984 | ' check may be added to prevent this.\n'
|
9983 | 9985 | '\n'
|
9984 |
| - '* Nonempty *__slots__* does not work for classes derived ' |
9985 |
| - 'from\n' |
9986 |
| - ' “variable-length” built-in types such as "int", "bytes" ' |
9987 |
| - 'and "tuple".\n' |
| 9986 | + '* "TypeError" will be raised if nonempty *__slots__* are ' |
| 9987 | + 'defined for a\n' |
| 9988 | + ' class derived from a ""variable-length" built-in type" ' |
| 9989 | + 'such as\n' |
| 9990 | + ' "int", "bytes", and "tuple".\n' |
9988 | 9991 | '\n'
|
9989 | 9992 | '* Any non-string *iterable* may be assigned to *__slots__*.\n'
|
9990 | 9993 | '\n'
|
@@ -13691,11 +13694,10 @@
|
13691 | 13694 | ' compiled; "co_firstlineno" is the first line number of the\n'
|
13692 | 13695 | ' function; "co_lnotab" is a string encoding the mapping from\n'
|
13693 | 13696 | ' bytecode offsets to line numbers (for details see the source\n'
|
13694 |
| - ' code of the interpreter); "co_stacksize" is the required ' |
13695 |
| - 'stack\n' |
13696 |
| - ' size; "co_flags" is an integer encoding a number of flags ' |
13697 |
| - 'for\n' |
13698 |
| - ' the interpreter.\n' |
| 13697 | + ' code of the interpreter, is deprecated since 3.12 and may be\n' |
| 13698 | + ' removed in 3.14); "co_stacksize" is the required stack size;\n' |
| 13699 | + ' "co_flags" is an integer encoding a number of flags for the\n' |
| 13700 | + ' interpreter.\n' |
13699 | 13701 | '\n'
|
13700 | 13702 | ' The following flag bits are defined for "co_flags": bit '
|
13701 | 13703 | '"0x04"\n'
|
|
13858 | 13860 | 'if\n'
|
13859 | 13861 | ' the interpreter is interactive, it is also made available to '
|
13860 | 13862 | 'the\n'
|
13861 |
| - ' user as "sys.last_exc".\n' |
| 13863 | + ' user as "sys.last_traceback".\n' |
13862 | 13864 | '\n'
|
13863 | 13865 | ' For explicitly created tracebacks, it is up to the creator '
|
13864 | 13866 | 'of\n'
|
|
0 commit comments