On Thu, Nov 20, 2014 at 11:35 PM, Peter Otten <__pete...@web.de> wrote:
> You don't need to change an all-ascii bytestring to unicode.
> Lo and behold:
>
>>>> "%s %s" % (u"üblich", u"ähnlich")
> u'\xfcblich \xe4hnlich'
>>>> u"%s %s" % (u"üblich", u"ähnlich")
> u'\xfcblich \xe4hnlich'
>
> Only non-ascii bytestrings mean trouble, either noisy
>

It's better to not depend on that, though. Be clear and explicit about
the difference between bytes and text, and don't try to pretend
they're the same thing, even for ASCII.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to