On 16 Sep 2014 01:17, "Ethan Furman" ethan@stoneleaf.us 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.
Cheers, Nick.
-- ~Ethan~
Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/