summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2010-02-25 14:58:13 (GMT)
committerEric Smith <eric@trueblade.com>2010-02-25 14:58:13 (GMT)
commit2e9f202f627ac453f42e8b5df53388f6bf3806f7 (patch)
tree768766ca642fad743ff17c89d5226e8fbe925165
parent05c0774f335aa50d1cf12bd929c223171cae85e8 (diff)
downloadcpython-2e9f202f627ac453f42e8b5df53388f6bf3806f7.zip
cpython-2e9f202f627ac453f42e8b5df53388f6bf3806f7.tar.gz
cpython-2e9f202f627ac453f42e8b5df53388f6bf3806f7.tar.bz2
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. ........
-rw-r--r--Doc/library/string.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index 0de7ff7..ea4b5da 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -199,7 +199,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" | "a"
format_spec: <described in the next section>