documentation bug? (format spec mini language)
Alan G Isaac
alan.isaac at gmail.com
Tue May 11 14:33:12 EDT 2010
The documentation at http://docs.python.org/py3k/library/string.html#format-specification-mini-language
'<' Forces the field to be left-aligned within the available space (This is the default.)
The conflicting example::
>>> format(3.2,'10.5f')
' 3.20000'
>>> format(3.2,'<10.5f')
'3.20000 '
Am I somehow misreading the documentation?
Thanks,
Alan Isaac
More information about the Python-list
mailing list