mirror of
https://github.com/python/cpython.git
synced 2025-08-06 18:08:48 +00:00
Python 3.12.0b3
This commit is contained in:
parent
225cc4c043
commit
f992a60014
44 changed files with 435 additions and 111 deletions
|
@ -1,5 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Autogenerated by Sphinx on Tue Jun 6 16:12:51 2023
|
||||
# Autogenerated by Sphinx on Mon Jun 19 20:55:48 2023
|
||||
topics = {'assert': 'The "assert" statement\n'
|
||||
'**********************\n'
|
||||
'\n'
|
||||
|
@ -6522,22 +6522,26 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'positional\n'
|
||||
'argument, and if it’s a keyword, it refers to a named '
|
||||
'keyword\n'
|
||||
'argument. If the numerical arg_names in a format string '
|
||||
'are 0, 1, 2,\n'
|
||||
'… in sequence, they can all be omitted (not just some) and '
|
||||
'the numbers\n'
|
||||
'0, 1, 2, … will be automatically inserted in that order. '
|
||||
'Because\n'
|
||||
'*arg_name* is not quote-delimited, it is not possible to '
|
||||
'specify\n'
|
||||
'arbitrary dictionary keys (e.g., the strings "\'10\'" or '
|
||||
'"\':-]\'") within\n'
|
||||
'a format string. The *arg_name* can be followed by any '
|
||||
'number of index\n'
|
||||
'or attribute expressions. An expression of the form '
|
||||
'"\'.name\'" selects\n'
|
||||
'the named attribute using "getattr()", while an expression '
|
||||
'of the form\n'
|
||||
'argument. An *arg_name* is treated as a number if a call '
|
||||
'to\n'
|
||||
'"str.isdecimal()" on the string would return true. If the '
|
||||
'numerical\n'
|
||||
'arg_names in a format string are 0, 1, 2, … in sequence, '
|
||||
'they can all\n'
|
||||
'be omitted (not just some) and the numbers 0, 1, 2, … will '
|
||||
'be\n'
|
||||
'automatically inserted in that order. Because *arg_name* is '
|
||||
'not quote-\n'
|
||||
'delimited, it is not possible to specify arbitrary '
|
||||
'dictionary keys\n'
|
||||
'(e.g., the strings "\'10\'" or "\':-]\'") within a format '
|
||||
'string. The\n'
|
||||
'*arg_name* can be followed by any number of index or '
|
||||
'attribute\n'
|
||||
'expressions. An expression of the form "\'.name\'" selects '
|
||||
'the named\n'
|
||||
'attribute using "getattr()", while an expression of the '
|
||||
'form\n'
|
||||
'"\'[index]\'" does an index lookup using "__getitem__()".\n'
|
||||
'\n'
|
||||
'Changed in version 3.1: The positional argument specifiers '
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue