[New-bugs-announce] [issue19289] Incorrect documentation for format's fill character.

Eric V. Smith report at bugs.python.org
Fri Oct 18 23:31:41 CEST 2013

New submission from Eric V. Smith:

In http://docs.python.org/library/string.html#format-specification-mini-language, it says "The fill character can be any character other than ‘{‘ or ‘}’."

But that's not actually true. It's only true when using str.format, as it does the parsing and the { and } mean special things for that parser. 

But for format itself there is no restriction:

>>> format(3, '{>10')

As this section should be documenting the format specifiers themselves, I think it should not concern itself with restrictions imposed by str.format.

assignee: docs at python
components: Documentation
messages: 200308
nosy: docs at python, eric.smith
priority: low
severity: normal
status: open
title: Incorrect documentation for format's fill character.
versions: Python 2.7, Python 3.3, Python 3.4

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list