]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-134449: fix grammar for `precision_with_grouping` in format description...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 2 Jun 2025 09:51:45 +0000 (11:51 +0200)
committerGitHub <noreply@github.com>
Mon, 2 Jun 2025 09:51:45 +0000 (09:51 +0000)
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 <skirpichev@gmail.com>
Doc/library/string.rst

index c4012483a52f730a63980a71ea370134b947db0c..23e157800754353c7d75e1e1ebb8b454c64c0f7d 100644 (file)
@@ -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: "," | "_"