]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] Corrections to format precision description. (GH-31291) (GH-31321)
authorJohn Belmonte <john@neggie.net>
Mon, 14 Feb 2022 03:05:11 +0000 (12:05 +0900)
committerGitHub <noreply@github.com>
Mon, 14 Feb 2022 03:05:11 +0000 (22:05 -0500)
commit0b1417d597c9ed5f9cd981fbf62824f41c740b17
tree3415d26fcda2d294c7749b6d565089d82ee115c8
parentc31b8a97a8a7e8255231c9e12ed581c6240c0d6c
[3.9] Corrections to format precision description. (GH-31291) (GH-31321)

* `precision` field is a decimal integer
  * clarify that stated limitations are on presentation type
    rather than input value type.  Especially misleading is
    "precision is not allowed for integer values", since integer
    value input to a format like `.1f` is fine.
  * regarding max field size, replace "non-number" with "string",
    which is the only non-numeric presentation type

Automerge-Triggered-By: GH:ericvsmith.
(cherry picked from commit 1d6ce67c29aa2166ef326952cb605b908fb4f987)

Co-authored-by: John Belmonte <john@neggie.net>
Doc/library/string.rst