Kaydet (Commit) 271b7e1a authored tarafından Eric Smith's avatar Eric Smith

Issue #7928: Document str.format element_index better.

üst de8b2ac3
......@@ -226,7 +226,8 @@ The grammar for a replacement field is as follows:
field_name: arg_name ("." `attribute_name` | "[" `element_index` "]")*
arg_name: (`identifier` | `integer`)?
attribute_name: `identifier`
element_index: `integer`
element_index: `integer` | `index_string`
index_string: <any source character except "]"> +
conversion: "r" | "s"
format_spec: <described in the next section>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment