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

Cheryl Sabella report at bugs.python.org
Sun Feb 25 12:05:08 EST 2018


Cheryl Sabella <chekat2 at gmail.com> added the comment:

>From the examples in msg220401, issue28385 changed it to print the object type in the message. 

>>> format([], 'd')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported format string passed to list.__format__
>>> format((), 'd')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported format string passed to tuple.__format__


Would the change left on this issue be to create a PR for Terry's documetation patch?

Thanks!

----------
nosy: +csabella
versions: +Python 3.6, Python 3.7, Python 3.8 -Python 3.4, Python 3.5

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


More information about the docs mailing list