JKPeck
1/6/2008 4:22:00 PM
On Jan 6, 9:06 am, John Nagle <na...@animats.com> wrote:
> Does
>
> text = unicode(text)
>
> make a copy of a Unicode string, or is that essentially a
> free operation if the input is already Unicode?
>
> John Nagle
>>> u = u"abc"
>>> uu = unicode(u)
>>> u is uu
True
>>> s = "abc"
>>> ss = unicode(s)
>>> s is ss
False
HTH,
Jon Peck