[Python-checkins] cpython: Further improved ',' and '_' specification in format mini-language.
eric.smith
python-checkins at python.org
Fri Sep 9 23:13:10 EDT 2016
https://hg.python.org/cpython/rev/0dca54cc03dd
changeset: 103538:0dca54cc03dd
user: Eric V. Smith <eric at trueblade.com>
date: Fri Sep 09 23:13:01 2016 -0400
summary:
Further improved ',' and '_' specification in format mini-language.
files:
Doc/library/string.rst | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -300,12 +300,12 @@
The general form of a *standard format specifier* is:
.. productionlist:: sf
- format_spec: [[`fill`]`align`][`sign`][#][0][`width`][`option`][.`precision`][`type`]
+ format_spec: [[`fill`]`align`][`sign`][#][0][`width`][`grouping_option`][.`precision`][`type`]
fill: <any character>
align: "<" | ">" | "=" | "^"
sign: "+" | "-" | " "
width: `integer`
- option: "_" | ","
+ grouping_option: "_" | ","
precision: `integer`
type: "b" | "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" | "n" | "o" | "s" | "x" | "X" | "%"
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list