STINNER Victor added the comment:
Another option is to decide that this issue will *not* be fixed in Python 2,
and Python 3 *is* the good solution if you have this issue.
Doing the work twice can cause new problems, formatting an argument twice may
return two different values :-( It may have an impact on performances and may
introduce regressions.
Oh by the way, it's trivial to workaround this issue in Python 2: just use a
Unicode format string. For example, replace '{0}'.format(u'\u3042') with
u'{0}'.format(u'\u3042').
I hate implicit conversion from bytes to Unicode in Python 2, it's maybe better
to not add a new special case?
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue7300>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com