From f014bad44d78dee1c2c24b5b539fd3f98f82a265 Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Mon, 7 Apr 2025 10:26:37 +0300 Subject: [PATCH] Fix precision_with_grouping in formatting mini-language The 'type' field can't immediately follow to the dot. This amends f39a07b. --- Doc/library/string.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/string.rst b/Doc/library/string.rst index f2f3ab9eefdd50..b8b51609a26ee3 100644 --- a/Doc/library/string.rst +++ b/Doc/library/string.rst @@ -326,7 +326,7 @@ The general form of a *standard format specifier* is: sign: "+" | "-" | " " width_and_precision: [`width_with_grouping`][`precision_with_grouping`] width_with_grouping: [`width`][`grouping`] - precision_with_grouping: "." [`precision`][`grouping`] + precision_with_grouping: "." (`precision` [`grouping`] | `grouping`) width: `~python-grammar:digit`+ precision: `~python-grammar:digit`+ grouping: "," | "_"