From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 2 Jun 2025 09:51:45 +0000 (+0200) Subject: [3.14] gh-134449: fix grammar for `precision_with_grouping` in format description... X-Git-Tag: v3.14.0b3~112 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=16d5bdd6e592ee6b187c006a91472d9b06f340ad;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-134449: fix grammar for `precision_with_grouping` in format description (GH-134608) (#135015) gh-134449: fix grammar for `precision_with_grouping` in format description (GH-134608) This amends commit f39a07be47cd9219eaf0e538ae32ad8239c88e66. (cherry picked from commit 7828d52680907d1661ff6993e540f7026461c390) Co-authored-by: Sergey B Kirpichev --- diff --git a/Doc/library/string.rst b/Doc/library/string.rst index c4012483a52f..23e157800754 100644 --- a/Doc/library/string.rst +++ b/Doc/library/string.rst @@ -328,7 +328,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: "," | "_"