https://github.com/python/cpython/commit/7828d52680907d1661ff6993e540f7026461c390
commit: 7828d52680907d1661ff6993e540f7026461c390
branch: main
author: Sergey B Kirpichev <[email protected]>
committer: picnixz <[email protected]>
date: 2025-06-02T11:45:48+02:00
summary:
gh-134449: fix grammar for `precision_with_grouping` in format description
(#134608)
This amends commit f39a07be47cd9219eaf0e538ae32ad8239c88e66.
files:
M Doc/library/string.rst
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index c4012483a52f73..23e15780075435 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: "," | "_"
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]