[Python-Dev] PEP 460 reboot (original) (raw)

Glenn Linderman v+python at g.nevcal.com
Mon Jan 13 21:54:31 CET 2014


On 1/13/2014 1:49 AM, Mark Shannon wrote:

So why not replace '%s' with '%a' for the ascii case and with '%b' for directly inserting bytes.

Because %a and %b don't exist in Python 2.7? I thought this was about 3.5, not 2.7 ;) '%s' can't work in 3.5, as we must differentiate between strings which meed to be encoded and bytes which don't.

It's about migrating code to reach a point where it can work on both 2.7 and 3.5. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20140113/ee238fc5/attachment.html>



More information about the Python-Dev mailing list