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

Eric V. Smith eric@trueblade.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.
----------
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue13790 _______________________________________

Serhiy Storchaka storchaka@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@bugs.python.org http://bugs.python.org/issue13790 _______________________________________
participants (2)
-
Eric V. Smith
-
Serhiy Storchaka