]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Corrections to format precision description. (GH-31291)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 14 Feb 2022 00:21:32 +0000 (16:21 -0800)
committerGitHub <noreply@github.com>
Mon, 14 Feb 2022 00:21:32 +0000 (16:21 -0800)
commit6a7dd3f9e9771279c8ee71dd3fd39a42f9b0ccff
treeccf0f7e3fa95a02ed539d2af3ff1b35d402afc37
parent44666c3285a52c2a4632f89aeeddd7ca7d02c8df
Corrections to format precision description. (GH-31291)

* `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