Message278846
From msg214162:
> This is basically the definition of object.__format__:
>
> def __format__(self, specifier):
> if len(specifier) == 0:
> return str(self)
> raise TypeError('non-empty format string passed to object.__format__')
This simple algorithm is implemented in object-__format__.patch.
But current implementation uses ``format(str(self), '')`` instead of just ``str(self)``. object-__format__-2.patch keeps this. |
|
Date |
User |
Action |
Args |
2016-10-18 07:53:46 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, eric.smith, r.david.murray, socketpair, berker.peksag |
2016-10-18 07:53:46 | serhiy.storchaka | set | messageid: <1476777226.39.0.359764379313.issue28385@psf.upfronthosting.co.za> |
2016-10-18 07:53:46 | serhiy.storchaka | link | issue28385 messages |
2016-10-18 07:53:46 | serhiy.storchaka | create | |
|