[Python-Dev] Default formatting

Serhiy Storchaka storchaka at gmail.com
Thu Oct 27 15:01:14 EDT 2016


On 27.10.16 19:59, Steve Dower wrote:
> Having the default __format__ behave like this makes me happiest:
>
> ....     def __format__(self, fmt):
> ....         return format(str(self), fmt)
>
> My 2c. YMMV. etc.

See issue7994 [1] for arguments against this.

[1] http://bugs.python.org/issue7994




More information about the Python-Dev mailing list