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

Mark Lawrence breamoreboy at yahoo.co.uk
Mon Feb 24 20:54:06 CET 2014

On 24/02/2014 18:40, Ethan Furman 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.
> "We don't need it" doesn't really need any further explanation.
> Does anybody have any examples where %a could be useful?  Considering
> the work-arounds are either wrong or painful, it wouldn't take much to
> sway me towards keeping it, but at the moment it seems to be a YAGNI,
> plus we could always add it later if it turns out to be useful.  (For
> that matter, we could implement the main portion of the PEP now, and
> maybe a %a use-case will show up before 3.5 is released and we could add
> it then.)
> So, any last thoughts about %a?

I placed it under your nose 
but personally I wouldn't lose any sleep whether it stays or goes.

My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

This email is free from viruses and malware because avast! Antivirus protection is active.

More information about the Python-Dev mailing list