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

Serhiy Storchaka report at bugs.python.org
Sat Jun 30 09:01:10 CEST 2012


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

> Serhiy: I'm not sure what you're saying. At the point that str.format() is producing its error message, it doesn't know as much as %-formatting does about the original arguments, so it can't produce a similar message.

I'm surprised that the code of the classic and the modern formatting is
so different. Looking deeper, I saw that the issue will go away in 3.4.
I agree with you in msg151728.

----------

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


More information about the docs mailing list