[issue13790] In str.format an incorrect error message for list, tuple, dict, set
py.user
report at bugs.python.org
Mon Jan 16 00:26:53 CET 2012
py.user <port139 at yandex.ru> added the comment:
R. David Murray wrote:
> it is made clear in various places that every object has an str
here:
http://docs.python.org/py3k/library/string.html#format-specification-mini-language
3rd paragraph:
"A general convention is that an empty format string ("") produces the same result as if you had called str() on the value. A non-empty format string typically modifies the result."
"an empty format string ("")" what does it mean ?
"".format(value) or "{}".format(value) or "{0}".format(value) ?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13790>
_______________________________________
More information about the Python-bugs-list
mailing list