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')
'{{{{{{{{{3'

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@python
components: Documentation
messages: 200308
nosy: docs@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue19289>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to