[Python-ideas] Stop displaying elements of bytes objects as printable ASCII characters in CPython 3

Nick Coghlan ncoghlan at gmail.com
Tue Sep 16 01:47:42 CEST 2014


On 16 Sep 2014 01:17, "Ethan Furman" <ethan at 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 at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140916/04fcd9a4/attachment.html>


More information about the Python-ideas mailing list