|
1 | 1 | # -*- coding: utf-8 -*-
|
2 |
| -# Autogenerated by Sphinx on Tue Dec 6 18:31:02 2022 |
| 2 | +# Autogenerated by Sphinx on Tue Feb 7 12:04:02 2023 |
3 | 3 | topics = {'assert': 'The "assert" statement\n'
|
4 | 4 | '**********************\n'
|
5 | 5 | '\n'
|
|
2391 | 2391 | 'finished,\n'
|
2392 | 2392 | 'but if the sequence is empty, they will not have been assigned '
|
2393 | 2393 | 'to at\n'
|
2394 |
| - 'all by the loop. Hint: the built-in function "range()" returns ' |
2395 |
| - 'an\n' |
2396 |
| - 'iterator of integers suitable to emulate the effect of Pascal’s ' |
2397 |
| - '"for i\n' |
2398 |
| - ':= a to b do"; e.g., "list(range(3))" returns the list "[0, 1, ' |
2399 |
| - '2]".\n' |
| 2394 | + 'all by the loop. Hint: the built-in type "range()" represents\n' |
| 2395 | + 'immutable arithmetic sequences of integers. For instance, ' |
| 2396 | + 'iterating\n' |
| 2397 | + '"range(3)" successively yields 0, 1, and then 2.\n' |
2400 | 2398 | '\n'
|
2401 | 2399 | '\n'
|
2402 | 2400 | 'The "try" statement\n'
|
|
2644 | 2642 | 'the\n'
|
2645 | 2643 | ' target list, it will be treated the same as an error '
|
2646 | 2644 | 'occurring\n'
|
2647 |
| - ' within the suite would be. See step 6 below.\n' |
| 2645 | + ' within the suite would be. See step 7 below.\n' |
2648 | 2646 | '\n'
|
2649 | 2647 | '6. The suite is executed.\n'
|
2650 | 2648 | '\n'
|
|
4567 | 4565 | 'the source. The extension interface uses the modules "bdb" and '
|
4568 | 4566 | '"cmd".\n'
|
4569 | 4567 | '\n'
|
| 4568 | + 'See also:\n' |
| 4569 | + '\n' |
| 4570 | + ' Module "faulthandler"\n' |
| 4571 | + ' Used to dump Python tracebacks explicitly, on a fault, ' |
| 4572 | + 'after a\n' |
| 4573 | + ' timeout, or on a user signal.\n' |
| 4574 | + '\n' |
| 4575 | + ' Module "traceback"\n' |
| 4576 | + ' Standard interface to extract, format and print stack ' |
| 4577 | + 'traces of\n' |
| 4578 | + ' Python programs.\n' |
| 4579 | + '\n' |
4570 | 4580 | 'The debugger’s prompt is "(Pdb)". Typical usage to run a program '
|
4571 | 4581 | 'under\n'
|
4572 | 4582 | 'control of the debugger is:\n'
|
|
5580 | 5590 | 'be\n'
|
5581 | 5591 | 'determined by scanning the entire text of the block for name '
|
5582 | 5592 | 'binding\n'
|
5583 |
| - 'operations.\n' |
| 5593 | + 'operations. See the FAQ entry on UnboundLocalError for ' |
| 5594 | + 'examples.\n' |
5584 | 5595 | '\n'
|
5585 | 5596 | 'If the "global" statement occurs within a block, all uses of '
|
5586 | 5597 | 'the names\n'
|
|
5888 | 5899 | '\n'
|
5889 | 5900 | 'Names in the target list are not deleted when the loop is finished,\n'
|
5890 | 5901 | 'but if the sequence is empty, they will not have been assigned to at\n'
|
5891 |
| - 'all by the loop. Hint: the built-in function "range()" returns an\n' |
5892 |
| - 'iterator of integers suitable to emulate the effect of Pascal’s "for ' |
5893 |
| - 'i\n' |
5894 |
| - ':= a to b do"; e.g., "list(range(3))" returns the list "[0, 1, 2]".\n', |
| 5902 | + 'all by the loop. Hint: the built-in type "range()" represents\n' |
| 5903 | + 'immutable arithmetic sequences of integers. For instance, iterating\n' |
| 5904 | + '"range(3)&q
10000
uot; successively yields 0, 1, and then 2.\n', |
5895 | 5905 | 'formatstrings': 'Format String Syntax\n'
|
5896 | 5906 | '********************\n'
|
5897 | 5907 | '\n'
|
|
7687 | 7697 | 'within a code block. The local variables of a code block can be\n'
|
7688 | 7698 | 'determined by scanning the entire text of the block for name '
|
7689 | 7699 | 'binding\n'
|
7690 |
| - 'operations.\n' |
| 7700 | + 'operations. See the FAQ entry on UnboundLocalError for examples.\n' |
7691 | 7701 | '\n'
|
7692 | 7702 | 'If the "global" statement occurs within a block, all uses of the '
|
7693 | 7703 | 'names\n'
|
@@ -11213,35 +11223,35 @@
|
11213 | 11223 | '\n'
|
11214 | 11224 | "str.encode(encoding='utf-8', errors='strict')\n"
|
11215 | 11225 | '\n'
|
11216 |
| - ' Return an encoded version of the string as a bytes ' |
11217 |
| - 'object. Default\n' |
11218 |
| - ' encoding is "\'utf-8\'". *errors* may be given to set a ' |
11219 |
| - 'different\n' |
11220 |
| - ' error handling scheme. The default for *errors* is ' |
11221 |
| - '"\'strict\'",\n' |
11222 |
| - ' meaning that encoding errors raise a "UnicodeError". ' |
| 11226 | + ' Return the string encoded to "bytes".\n' |
| 11227 | + '\n' |
| 11228 | + ' *encoding* defaults to "\'utf-8\'"; see Standard ' |
| 11229 | + 'Encodings for\n' |
| 11230 | + ' possible values.\n' |
| 11231 | + '\n' |
| 11232 | + ' *errors* controls how encoding errors are handled. If ' |
| 11233 | + '"\'strict\'"\n' |
| 11234 | + ' (the default), a "UnicodeError" exception is raised. ' |
11223 | 11235 | 'Other possible\n'
|
11224 | 11236 | ' values are "\'ignore\'", "\'replace\'", '
|
11225 | 11237 | '"\'xmlcharrefreplace\'",\n'
|
11226 | 11238 | ' "\'backslashreplace\'" and any other name registered '
|
11227 | 11239 | 'via\n'
|
11228 |
| - ' "codecs.register_error()", see section Error Handlers. ' |
11229 |
| - 'For a list\n' |
11230 |
| - ' of possible encodings, see section Standard Encodings.\n' |
| 11240 | + ' "codecs.register_error()". See Error Handlers for ' |
| 11241 | + 'details.\n' |
11231 | 11242 | '\n'
|
11232 |
| - ' By default, the *errors* argument is not checked for ' |
11233 |
| - 'best\n' |
11234 |
| - ' performances, but only used at the first encoding ' |
11235 |
| - 'error. Enable the\n' |
11236 |
| - ' Python Development Mode, or use a debug build to check ' |
11237 |
| - '*errors*.\n' |
| 11243 | + ' For performance reasons, the value of *errors* is not ' |
| 11244 | + 'checked for\n' |
| 11245 | + ' validity unless an encoding error actually occurs, ' |
| 11246 | + 'Python\n' |
| 11247 | + ' Development Mode is enabled or a debug build is used.\n' |
11238 | 11248 | '\n'
|
11239 |
| - ' Changed in version 3.1: Support for keyword arguments ' |
11240 |
| - 'added.\n' |
| 11249 | + ' Changed in version 3.1: Added support for keyword ' |
| 11250 | + 'arguments.\n' |
11241 | 11251 | '\n'
|
11242 |
| - ' Changed in version 3.9: The *errors* is now checked in ' |
11243 |
| - 'development\n' |
11244 |
| - ' mode and in debug mode.\n' |
| 11252 | + ' Changed in version 3.9: The value of the *errors* ' |
| 11253 | + 'argument is now\n' |
| 11254 | + ' checked in Python Development Mode and in debug mode.\n' |
11245 | 11255 | '\n'
|
11246 | 11256 | 'str.endswith(suffix[, start[, end]])\n'
|
11247 | 11257 | '\n'
|
|
14199 | 14209 | ' >>> # get back a read-only proxy for the original '
|
14200 | 14210 | 'dictionary\n'
|
14201 | 14211 | ' >>> values.mapping\n'
|
14202 |
| - " mappingproxy({'eggs': 2, 'sausage': 1, 'bacon': 1, " |
14203 |
| - "'spam': 500})\n" |
| 14212 | + " mappingproxy({'bacon': 1, 'spam': 500})\n" |
14204 | 14213 | " >>> values.mapping['spam']\n"
|
14205 | 14214 | ' 500\n',
|
14206 | 14215 | 'typesmethods': 'Methods\n'
|
|
15246 | 15255 | ' returns without an error, then "__exit__()" will always be\n'
|
15247 | 15256 | ' called. Thus, if an error occurs during the assignment to the\n'
|
15248 | 15257 | ' target list, it will be treated the same as an error occurring\n'
|
15249 |
| - ' within the suite would be. See step 6 below.\n' |
| 15258 | + ' within the suite would be. See step 7 below.\n' |
15250 | 15259 | '\n'
|
15251 | 15260 | '6. The suite is executed.\n'
|
15252 | 15261 | '\n'
|
|
0 commit comments