|
1 | 1 | # -*- coding: utf-8 -*- |
2 | | -# Autogenerated by Sphinx on Tue Jun 6 16:12:51 2023 |
| 2 | +# Autogenerated by Sphinx on Mon Jun 19 20:55:48 2023 |
3 | 3 | topics = {'assert': 'The "assert" statement\n' |
4 | 4 | '**********************\n' |
5 | 5 | '\n' |
|
6522 | 6522 | 'positional\n' |
6523 | 6523 | 'argument, and if it’s a keyword, it refers to a named ' |
6524 | 6524 | 'keyword\n' |
6525 | | - 'argument. If the numerical arg_names in a format string ' |
6526 | | - 'are 0, 1, 2,\n' |
6527 | | - '… in sequence, they can all be omitted (not just some) and ' |
6528 | | - 'the numbers\n' |
6529 | | - '0, 1, 2, … will be automatically inserted in that order. ' |
6530 | | - 'Because\n' |
6531 | | - '*arg_name* is not quote-delimited, it is not possible to ' |
6532 | | - 'specify\n' |
6533 | | - 'arbitrary dictionary keys (e.g., the strings "\'10\'" or ' |
6534 | | - '"\':-]\'") within\n' |
6535 | | - 'a format string. The *arg_name* can be followed by any ' |
6536 | | - 'number of index\n' |
6537 | | - 'or attribute expressions. An expression of the form ' |
6538 | | - '"\'.name\'" selects\n' |
6539 | | - 'the named attribute using "getattr()", while an expression ' |
6540 | | - 'of the form\n' |
| 6525 | + 'argument. An *arg_name* is treated as a number if a call ' |
| 6526 | + 'to\n' |
| 6527 | + '"str.isdecimal()" on the string would return true. If the ' |
| 6528 | + 'numerical\n' |
| 6529 | + 'arg_names in a format string are 0, 1, 2, … in sequence, ' |
| 6530 | + 'they can all\n' |
| 6531 | + 'be omitted (not just some) and the numbers 0, 1, 2, … will ' |
| 6532 | + 'be\n' |
| 6533 | + 'automatically inserted in that order. Because *arg_name* is ' |
| 6534 | + 'not quote-\n' |
| 6535 | + 'delimited, it is not possible to specify arbitrary ' |
| 6536 | + 'dictionary keys\n' |
| 6537 | + '(e.g., the strings "\'10\'" or "\':-]\'") within a format ' |
| 6538 | + 'string. The\n' |
| 6539 | + '*arg_name* can be followed by any number of index or ' |
| 6540 | + 'attribute\n' |
| 6541 | + 'expressions. An expression of the form "\'.name\'" selects ' |
| 6542 | + 'the named\n' |
| 6543 | + 'attribute using "getattr()", while an expression of the ' |
| 6544 | + 'form\n' |
6541 | 6545 | '"\'[index]\'" does an index lookup using "__getitem__()".\n' |
6542 | 6546 | '\n' |
6543 | 6547 | 'Changed in version 3.1: The positional argument specifiers ' |
|
0 commit comments