On Jan 6, 9:06 am, John Nagle <[EMAIL PROTECTED]> 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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to