lists and the letter u
SNYDER, BARRON F. (AIT)
BARRON.F.SNYDER at msg.ameritech.com
Mon Nov 27 12:46:08 EST 2000
I am using Python 2.0 on Windows NT.
-----Original Message-----
From: Neil Schemenauer [mailto:nas at arctrix.com]
Sent: Monday, November 27, 2000 4:48 AM
To: SNYDER, BARRON F. (AIT)
Cc: python-list at python.org
Subject: Re: lists and the letter u
On Mon, Nov 27, 2000 at 12:29:17PM -0500, SNYDER, BARRON F. (AIT) wrote:
> I'm appending string values to a list and when I print the list, the
letter
> 'u' appears before each element:
>
> [u'dog', u'cat']
>
> What does the 'u' mean? (I didn't see it documented in any of the books I
> have and had a hard time searching for it in the archives)
You must be using Python 2.0. A new feature is Unicode strings.
Just as 'r' denotes a raw string, 'u' denotes a Unicode string.
I'm not sure how you are creating Unicode strings. What
environment are you using?
Neil
More information about the Python-list
mailing list