This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients berker.peksag, eric.smith, ned.deily, python-dev, r.david.murray, serhiy.storchaka, socketpair, vstinner
Date 2016-10-31.12:56:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
But on other hand, the error depends on the value of format specifier:

>>> format('abc', '')
>>> format('abc', 'j')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Unknown format code 'j' for object of type 'str'
>>> format([1, 2, 3], '')
'[1, 2, 3]'
>>> format([1, 2, 3], 'j')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported format string passed to list.__format__

If keep TypeError I think it would be better to restore former error message "non-empty format string".
Date User Action Args
2016-10-31 12:56:51serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, eric.smith, ned.deily, r.david.murray, socketpair, python-dev, berker.peksag
2016-10-31 12:56:51serhiy.storchakasetmessageid: <>
2016-10-31 12:56:51serhiy.storchakalinkissue28385 messages
2016-10-31 12:56:51serhiy.storchakacreate