Message352775
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__. |
|
Date |
User |
Action |
Args |
2019-09-19 09:02:13 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, tebeka, pitrou, eric.smith |
2019-09-19 09:02:13 | serhiy.storchaka | set | messageid: <1568883733.57.0.436414877981.issue38222@roundup.psfhosted.org> |
2019-09-19 09:02:13 | serhiy.storchaka | link | issue38222 messages |
2019-09-19 09:02:13 | serhiy.storchaka | create | |
|