On 1/13/2014 1:49 AM, Mark Shannon wrote:
It's about migrating code to reach a point where it can work on both 2.7 and 3.5.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 betweenstrings which meed to be encoded and bytes which don't.
_______________________________________________ Python-Dev mailing list [email protected] https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com