We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7c5f60 commit ce915deCopy full SHA for ce915de
Doc/library/string.rst
@@ -216,8 +216,8 @@ The grammar for a replacement field is as follows:
216
.. productionlist:: format-string
217
replacement_field: "{" [`field_name`] ["!" `conversion`] [":" `format_spec`] "}"
218
field_name: `arg_name` ("." `attribute_name` | "[" `element_index` "]")*
219
- arg_name: [`~python-grammar:identifier` | `~python-grammar:digit`+]
220
- attribute_name: `~python-grammar:identifier`
+ arg_name: [`~python-grammar:digit`+ | `attribute_name`]
+ attribute_name: <any source character except "{", "}", "[", or "."> +
221
element_index: `~python-grammar:digit`+ | `index_string`
222
index_string: <any source character except "]"> +
223
conversion: "r" | "s" | "a"
0 commit comments