On 01/12/2014 01:06 PM, Greg Ewing wrote:
Paul Moore wrote:

I could easily argue at this point that this is the type of bug that
having %-formatting operations on bytes would encourage - %s means
"format a string" (from years of C and Python (text) experience) so I
automatically supply a string argument when using %s in a bytes
formatting context.

So don't call it %s -- call it something else
such as %b.

Which is fine for 3.5+ code, but not at all helpful for a 2/3 code base.

--
~Ethan~
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to