1. Armin Rigo
  2. cpython-withatomic

Commits

ericvsmith  committed ecfe9cf

Merged revisions 78444 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r78444 | eric.smith | 2010-02-25 09:26:33 -0500 (Thu, 25 Feb 2010) | 1 line

Issue #7928: Document str.format element_index better.
........

  • Participants
  • Parent commits bd8357a
  • Branches 2.6

Comments (0)

Files changed (1)

File Doc/library/string.rst

View file
  • Ignore whitespace
       replacement_field: "{" `field_name` ["!" `conversion`] [":" `format_spec`] "}"
       field_name: (`identifier` | `integer`) ("." `attribute_name` | "[" `element_index` "]")*
       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>