In article <[EMAIL PROTECTED]>,
JKPeck <[EMAIL PROTECTED]> wrote:
>
u = u"abc"
uu = unicode(u)
u is uu
>True
s = "abc"
ss = unicode(s)
s is ss
>False
You uuencode Unicode?
--
Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/
Sorry, couldn't
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)
>>>
John Nagle 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?
>>> u = u"some long unicode object"
>>> unicode(u) is u
True
--
http://mail.python.org/mailman/listinfo/python-list
John Nagle wrote in news:[EMAIL PROTECTED] in
comp.lang.python:
>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
>
http://docs.python.org/lib/built-in-fun
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
--
http://mail.python.org/mailman/listinfo/python-list