[docs] [issue13790] In str.format an incorrect error message for list, tuple, dict, set

Serhiy Storchaka report at bugs.python.org
Fri Jun 29 20:17:32 CEST 2012


Serhiy Storchaka <storchaka at gmail.com> added the comment:

>>> '%d' % ([],)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: %d format: a number is required, not list

----------
nosy: +storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13790>
_______________________________________


More information about the docs mailing list