Message278846
| Author |
serhiy.storchaka |
| Recipients |
berker.peksag, eric.smith, r.david.murray, serhiy.storchaka, socketpair, vstinner |
| Date |
2016年10月18日.07:53:46 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1476777226.39.0.359764379313.issue28385@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|