[Python-Dev] PEP 461: Adding % formatting to bytes and bytearray -- Final, Take 2

Antoine Pitrou solipsis at pitrou.net
Mon Feb 24 20:42:37 CET 2014


On Mon, 24 Feb 2014 10:40:46 -0800
Ethan Furman <ethan at stoneleaf.us> wrote:

> Okay, types corrected, most comments taken into account.
> 
> %b is right out, %a is still suffering scrutiny.
> 
> The arguments seem to boil down to:
> 
> We don't need it.
> 
> vs
> 
> Somebody might, and it's better than having them inappropriately add a __bytes__ method if we don't have it.

Don't forget that Python is a language for consenting adults. Adding a
near-useless feature for fear that otherwise people might shoot
themselves in the foot by using another feature must be one of the
worst arguments I've ever heard :-)

Regards

Antoine.




More information about the Python-Dev mailing list