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, 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.
History
Date User Action Args
2016-10-18 07:53:46serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, eric.smith, r.david.murray, socketpair, berker.peksag
2016-10-18 07:53:46serhiy.storchakasetmessageid: <1476777226.39.0.359764379313.issue28385@psf.upfronthosting.co.za>
2016-10-18 07:53:46serhiy.storchakalinkissue28385 messages
2016-10-18 07:53:46serhiy.storchakacreate