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.
_______________________________________________
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