[issue11138] Docs: incollect example: "fill" and "align"
New submission from Urago Keisuke <bravo@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@python components: Documentation messages: 128099 nosy: Urago.Keisuke, docs@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@bugs.python.org> <http://bugs.python.org/issue11138> _______________________________________
Georg Brandl <georg@python.org> added the comment: Thanks, fixed in r88364. ---------- nosy: +georg.brandl resolution: -> fixed status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11138> _______________________________________
participants (2)
-
Georg Brandl -
Urago Keisuke