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 eric.smith, pitrou, serhiy.storchaka, tebeka
Date 2019-09-19.09:02:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1568883733.57.0.436414877981.issue38222@roundup.psfhosted.org>
In-reply-to
Content
Initially, the default __format__ converted the object to str and passed format specifier to str.__format__. This is defined in PEP 3101:

class object:
    def __format__(self, format_spec):
        return format(str(self), format_spec)

But later we changed the implementation, because this leaded to difficult to catch errors. Non-empty format specifier is now error in the default __format__.
History
Date User Action Args
2019-09-19 09:02:13serhiy.storchakasetrecipients: + serhiy.storchaka, tebeka, pitrou, eric.smith
2019-09-19 09:02:13serhiy.storchakasetmessageid: <1568883733.57.0.436414877981.issue38222@roundup.psfhosted.org>
2019-09-19 09:02:13serhiy.storchakalinkissue38222 messages
2019-09-19 09:02:13serhiy.storchakacreate