[docs] [issue12644] document the "%a" conversion in the old string formatting operations

Eli Bendersky report at bugs.python.org
Wed Jul 27 19:08:32 CEST 2011

Eli Bendersky <eliben at gmail.com> added the comment:

Yeah, the note should probably be clarified to mention that if precision is specified, only the first precision characters will be shown. The field width is covered globally (for all conversion types) in note 4 above the table.

While we're at it, note 5 is:

   Precision (optional), given as a '.' (dot) followed by the precision. If specified as '*' (an asterisk), the actual width is read from the next element of the tuple in values, and the value to convert comes after the precision.

I think that the second sentence should have "the actual precision" instead "the actual width".


Python tracker <report at bugs.python.org>

More information about the docs mailing list