File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -293,18 +293,18 @@ The general form of a *standard format specifier* is:
293293
294294.. productionlist :: sf
295295 format_spec: [[`fill `]`align`][`sign `][#][0][`width `][,][.`precision`][`type `]
296- fill: <a character other than '{' or '}' >
296+ fill: <any character>
297297 align: "<" | ">" | "=" | "^"
298298 sign: "+" | "-" | " "
299299 width: `integer `
300300 precision: `integer `
301301 type: "b" | "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" | "n" | "o" | "s" | "x" | "X" | "%"
302302
303- The * fill * character can be any character other than '{' or '}'. The presence
304- of a fill character is signaled by the character following it, which must be
305- one of the alignment options. If the second character of * format_spec * is not
306- a valid alignment option, then it is assumed that both the fill character and
307- the alignment option are absent .
303+ If a valid * align * value is specified, it can be preceeded by a * fill *
304+ character that can be any character and defaults to a space if omitted.
305+ Note that it is not possible to use `` { `` and `` } `` as * fill * char while
306+ using the :meth: ` str.format ` method; this limitation however doesn't
307+ affect the :func: ` format ` function .
308308
309309The meaning of the various alignment options is as follows:
310310
You can’t perform that action at this time.
0 commit comments