[Python-checkins] r88364 - python/branches/py3k/Doc/library/string.rst

georg.brandl python-checkins at python.org
Mon Feb 7 13:10:46 CET 2011


Author: georg.brandl
Date: Mon Feb  7 13:10:46 2011
New Revision: 88364

Log:
#11138: fix order of fill and align specifiers.

Modified:
   python/branches/py3k/Doc/library/string.rst

Modified: python/branches/py3k/Doc/library/string.rst
==============================================================================
--- python/branches/py3k/Doc/library/string.rst	(original)
+++ python/branches/py3k/Doc/library/string.rst	Mon Feb  7 13:10:46 2011
@@ -595,7 +595,7 @@
 Nesting arguments and more complex examples::
 
    >>> for align, text in zip('<^>', ['left', 'center', 'right']):
-   ...     '{0:{align}{fill}16}'.format(text, fill=align, align=align)
+   ...     '{0:{fill}{align}16}'.format(text, fill=align, align=align)
    ...
    'left<<<<<<<<<<<<'
    '^^^^^center^^^^^'


More information about the Python-checkins mailing list