|
1 | 1 | # -*- coding: utf-8 -*-
|
2 |
| -# Autogenerated by Sphinx on Tue Dec 6 19:05:00 2022 |
| 2 | +# Autogenerated by Sphinx on Tue Feb 7 13:37:35 2023 |
3 | 3 | topics = {'assert': 'The "assert" statement\n'
|
4 | 4 | '**********************\n'
|
5 | 5 | '\n'
|
|
2382 | 2382 | 'finished,\n'
|
2383 | 2383 | 'but if the sequence is empty, they will not have been assigned '
|
2384 | 2384 | 'to at\n'
|
2385 |
| - 'all by the loop. Hint: the built-in function "range()" returns ' |
2386 |
| - 'an\n' |
2387 |
| - 'iterator of integers suitable to emulate the effect of Pascal’s ' |
2388 |
| - '"for i\n' |
2389 |
| - ':= a to b do"; e.g., "list(range(3))" returns the list "[0, 1, ' |
2390 |
| - '2]".\n' |
| 2385 | + 'all by the loop. Hint: the built-in type "range()" represents\n' |
| 2386 | + 'immutable arithmetic sequences of integers. For instance, ' |
| 2387 | + 'iterating\n' |
| 2388 | + '"range(3)" successively yields 0, 1, and then 2.\n' |
2391 | 2389 | '\n'
|
2392 | 2390 | 'Changed in version 3.11: Starred elements are now allowed in '
|
2393 | 2391 | 'the\n'
|
|
2726 | 2724 | 'the\n'
|
2727 | 2725 | ' target list, it will be treated the same as an error '
|
2728 | 2726 | 'occurring\n'
|
2729 |
| - ' within the suite would be. See step 6 below.\n' |
| 2727 | + ' within the suite would be. See step 7 below.\n' |
2730 | 2728 | '\n'
|
2731 | 2729 | '6. The suite is executed.\n'
|
2732 | 2730 | '\n'
|
|
4649 | 4647 | 'the source. The extension interface uses the modules "bdb" and '
|
4650 | 4648 | '"cmd".\n'
|
4651 | 4649 | '\n'
|
| 4650 | + 'See also:\n' |
| 4651 | + '\n' |
| 4652 | + ' Module "faulthandler"\n' |
| 4653 | + ' Used to dump Python tracebacks explicitly, on a fault, ' |
| 4654 | + 'after a\n' |
| 4655 | + ' timeout, or on a user signal.\n' |
| 4656 | + '\n' |
| 4657 | + ' Module "traceback"\n' |
| 4658 | + ' Standard interface to extract, format and print stack ' |
| 4659 | + 'traces of\n' |
| 4660 | + ' Python programs.\n' |
| 4661 | + '\n' |
4652 | 4662 | 'The debugger’s prompt is "(Pdb)". Typical usage to run a program '
|
4653 | 4663 | 'under\n'
|
4654 | 4664 | 'control of the debugger is:\n'
|
|
5668 | 5678 | 'be\n'
|
5669 | 5679 | 'determined by scanning the entire text of the block for name '
|
5670 | 5680 | 'binding\n'
|
5671 |
| - 'operations.\n' |
| 5681 | + 'operations. See the FAQ entry on UnboundLocalError for ' |
| 5682 | + 'examples.\n' |
5672 | 5683 | '\n'
|
5673 | 5684 | 'If the "global" statement occurs within a block, all uses of '
|
5674 | 5685 | 'the names\n'
|
|
5970 | 5981 | '\n'
|
5971 | 5982 | 'Names in the target list are not deleted when the loop is finished,\n'
|
5972 | 5983 | 'but if the sequence is empty, they will not have been assigned to at\n'
|
5973 |
| - 'all by the loop. Hint: the built-in function "range()" returns an\n' |
5974 |
| - 'iterator of integers suitable to emulate the effect of Pascal’s "for ' |
5975 |
| - 'i\n' |
5976 |
| - ':= a to b do"; e.g., "list(range(3))" returns the list "[0, 1, 2]".\n' |
| 5984 | + 'all by the loop. Hint: the built-in type "range()" represents\n' |
| 5985 | + 'immutable arithmetic sequences of integers. For instance, iterating\n' |
| 5986 | + '"range(3)" successively yields 0, 1, and then 2.\n' |
5977 | 5987 | '\n'
|
5978 | 5988 | 'Changed in version 3.11: Starred elements are now allowed in the\n'
|
5979 | 5989 | 'expression list.\n',
|
|
7781 | 7791 | 'within a code block. The local variables of a code block can be\n'
|
7782 | 7792 | 'determined by scanning the entire text of the block for name '
|
7783 | 7793 | 'binding\n'
|
7784 |
| - 'operations.\n' |
| 7794 | + 'operations. See the FAQ entry on UnboundLocalError for examples.\n' |
7785 | 7795 | '\n'
|
7786 | 7796 | 'If the "global" statement occurs within a block, all uses of the '
|
7787 | 7797 | 'names\n'
|
@@ -11322,35 +11332,35 @@
|
11322 | 11332 | '\n'
|
11323 | 11333 | "str.encode(encoding='utf-8', errors='strict')\n"
|
11324 | 11334 | '\n'
|
11325 |
| - ' Return an encoded version of the string as a bytes ' |
11326 |
| - 'object. Default\n' |
11327 |
| - ' encoding is "\'utf-8\'". *errors* may be given to set a ' |
11328 |
| - 'different\n' |
11329 |
| - ' error handling scheme. The default for *errors* is ' |
11330 |
| - '"\'strict\'",\n' |
11331 |
| - ' meaning that encoding errors raise a "UnicodeError". ' |
| 11335 | + ' Return the string encoded to "bytes".\n' |
| 11336 | + '\n' |
| 11337 | + ' *encoding* defaults to "\'utf-8\'"; see Standard ' |
| 11338 | + 'Encodings for\n' |
| 11339 | + ' possible values.\n' |
| 11340 | + '\n' |
| 11341 | + ' *errors* controls how encoding errors are handled. If ' |
| 11342 | + '"\'strict\'"\n' |
| 11343 | + ' (the default), a "UnicodeError" exception is raised. ' |
11332 | 11344 | 'Other possible\n'
|
11333 | 11345 | ' values are "\'ignore\'", "\'replace\'", '
|
11334 | 11346 | '"\'xmlcharrefreplace\'",\n'
|
11335 | 11347 | ' "\'backslashreplace\'" and any other name registered '
|
11336 | 11348 | 'via\n'
|
11337 |
| - ' "codecs.register_error()", see section Error Handlers. ' |
11338 |
| - 'For a list\n' |
11339 |
| - ' of possible encodings, see section Standard Encodings.\n' |
| 11349 | + ' "codecs.register_error()". See Error Handlers for ' |
| 11350 | + 'details.\n' |
11340 | 11351 | '\n'
|
11341 |
| - ' By default, the *errors* argument is not checked for ' |
11342 |
| - 'best\n' |
11343 |
| - ' performances, but only used at the first encoding ' |
11344 |
| - 'error. Enable the\n' |
11345 |
| - ' Python Development Mode, or use a debug build to check ' |
11346 |
| - '*errors*.\n' |
| 11352 | + ' For performance reasons, the value of *errors* is not ' |
| 11353 | + 'checked for\n' |
| 11354 | + ' validity unless an encoding error actually occurs, ' |
| 11355 | + 'Python\n' |
| 11356 | + ' Development Mode is enabled or a debug build is used.\n' |
11347 | 11357 | '\n'
|
11348 |
| - ' Changed in version 3.1: Support for keyword arguments ' |
11349 |
| - 'added.\n' |
| 11358 | + ' Changed in version 3.1: Added support for keyword ' |
| 11359 | + 'arguments.\n' |
11350 | 11360 | '\n'
|
11351 |
| - ' Changed in version 3.9: The *errors* is now checked in ' |
11352 |
| - 'development\n' |
11353 |
| - ' mode and in debug mode.\n' |
| 11361 | + ' Changed in version 3.9: The value of the *errors* ' |
| 11362 | + 'argument is now\n' |
| 11363 | + ' checked in Python Development Mode and in debug mode.\n' |
11354 | 11364 | '\n'
|
11355 | 11365 | 'str.endswith(suffix[, start[, end]])\n'
|
11356 | 11366 | '\n'
|
|
14437 | 14447 | ' >>> # get back a read-only proxy for the original '
|
14438 | 14448 | 'dictionary\n'
|
14439 | 14449 | ' >>> values.mapping\n'
|
14440 |
| - " mappingproxy({'eggs': 2, 'sausage': 1, 'bacon': 1, " |
14441 |
| - "'spam': 500})\n" |
| 14450 | + " mappingproxy({'bacon': 1, 'spam': 500})\n" |
14442 | 14451 | " >>> values.mapping['spam']\n"
|
14443 | 14452 | ' 500\n',
|
14444 | 14453 | 'typesmethods': 'Methods\n'
|
|
15484 | 15493 | ' returns without an error, then "__exit__()" will always be\n'
|
15485 | 15494 | ' called. Thus, if an error occurs during the assignment to the\n'
|
15486 | 15495 | ' target list, it will be treated the same as an error occurring\n'
|
15487 |
| - ' within the suite would be. See step 6 below.\n' |
| 15496 | + ' within the suite would be. See step 7 below.\n' |
15488 | 15497 | '\n'
|
15489 | 15498 | '6. The suite is executed.\n'
|
15490 | 15499 | '\n'
|
|
0 commit comments