bpo-32720: Fixed the definition for width and precision in format min… · python/cpython@8b5fa28

Original file line numberDiff line numberDiff line change

@@ -304,9 +304,9 @@ The general form of a *standard format specifier* is:

304304

fill: <any character>

305305

align: "<" | ">" | "=" | "^"

306306

sign: "+" | "-" | " "

307-

width: `integer`

307+

width: `digit`+

308308

grouping_option: "_" | ","

309-

precision: `integer`

309+

precision: `digit`+

310310

type: "b" | "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" | "n" | "o" | "s" | "x" | "X" | "%"

311311
312312

If a valid *align* value is specified, it can be preceded by a *fill*