On 16 Sep 2014 01:17, "Ethan Furman" firstname.lastname@example.org wrote:
I don't think we need another formatting operator. we already have % and
.format() -- do we still have string templates?
Yes, but those were designed for a specific use case where the templates are written by language translators rather than software developers.
The current suggestion on the issue tracker is to add __format__ to bytes/bytearray/memoryview with a suitable symbolic mini-language to control the formatting details.
Thrashing out a mini-language design will likely require a PEP, though.
Python-ideas mailing list Pythonemail@example.com https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/