[Python-ideas] One way to do format and print

Random832 random832 at fastmail.com
Tue Sep 8 06:27:43 CEST 2015

"Stephen J. Turnbull" <stephen at xemacs.org>

> Random832 writes:
>  > But anyway, my ideal version of it would have a .format method, but
>  > using identical format strings.
> "Identical" is impossible, even you immediately admit that an
> extension is necessary:

By "Identical" I meant there would be a single mechanism, including all
new features, used for both str.format and str.__mod__ - i.e. the
extensions would also be available using the % operator. The extensions
would be implemented, but the % operator would not be left
behind. Hence, identical.

More information about the Python-ideas mailing list