]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Corrections to format precision description. (GH-31291)
authorJohn Belmonte <john@neggie.net>
Mon, 14 Feb 2022 00:00:32 +0000 (09:00 +0900)
committerGitHub <noreply@github.com>
Mon, 14 Feb 2022 00:00:32 +0000 (16:00 -0800)
commit1d6ce67c29aa2166ef326952cb605b908fb4f987
tree41f430f6bdbd72b1012dae433f4aa732c339179c
parent0ae40191793da1877a12d512f0116d99301b2c51
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
Doc/library/string.rst