[Python-checkins] cpython: Improved ',' and '_' specification in format mini-language.

eric.smith python-checkins at python.org
Fri Sep 9 23:12:12 EDT 2016


https://hg.python.org/cpython/rev/954e137b53d2
changeset: 103537:954e137b53d2
user: Eric V. Smith <eric at trueblade.com>
date: Fri Sep 09 23:12:02 2016 -0400
summary:
 Improved ',' and '_' specification in format mini-language.
files:
 Doc/library/string.rst | 3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -300,11 +300,12 @@
 The general form of a *standard format specifier* is:
 
 .. productionlist:: sf
- format_spec: [[`fill`]`align`][`sign`][#][0][`width`][,][_][.`precision`][`type`]
+ format_spec: [[`fill`]`align`][`sign`][#][0][`width`][`option`][.`precision`][`type`]
 fill: <any character>
 align: "<" | ">" | "=" | "^"
 sign: "+" | "-" | " "
 width: `integer`
+ 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

AltStyle によって変換されたページ (->オリジナル) /