]> granicus.if.org Git - python/commitdiff
update string formatting grammar
authorBenjamin Peterson <benjamin@python.org>
Sun, 9 Nov 2008 01:43:02 +0000 (01:43 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 9 Nov 2008 01:43:02 +0000 (01:43 +0000)
Doc/library/string.rst

index 6ab555a69f8ee94cd21156ffaafe9be3fc4554a7..63caa4cf3f3d0a977eaa960817271cbf76d1cc90 100644 (file)
@@ -199,7 +199,7 @@ The grammar for a replacement field is as follows:
       field_name: (`identifier` | `integer`) ("." `attribute_name` | "[" element_index "]")*
       attribute_name: `identifier`
       element_index: `integer`
-      conversion: "r" | "s"
+      conversion: "r" | "s" | "a"
       format_spec: <described in the next section>
       
 In less formal terms, the replacement field starts with a *field_name*, which