[docs] [issue11138] Docs: incollect example: "fill" and "align"

Urago Keisuke report at bugs.python.org
Mon Feb 7 05:41:27 CET 2011

New submission from Urago Keisuke <bravo at resourcez.org>:

"Nesting arguments and more complex examples"
at http://docs.python.org/library/string.html#format-examples

Below example code is no errors:
>>> for align, text in zip('<^>', ['left', 'center', 'right']):
...     '{0:{align}{fill}16}'.format(text, fill=align, align=align)

I think meaning is as follows:
...     '{0:{fill}{align}16}'.format(text, fill=align, align=align)

assignee: docs at python
components: Documentation
messages: 128099
nosy: Urago.Keisuke, docs at python
priority: normal
severity: normal
status: open
title: Docs: incollect example: "fill" and "align"
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

Python tracker <report at bugs.python.org>

More information about the docs mailing list