What is this 'u' in my list?

Klaus Alexander Seistrup spam at magnetic-ink.dk
Mon Mar 10 12:32:04 EST 2003


Antun Karlovac wrote:

> [u'name', u'size', u'expression', u'number', u'reference', u'string', u'color']
> 
> What is the u before the string?

#v+

>>> x = [u'name', u'size', u'expression', u'number', u'reference', u'string', u'color']
>>> type(x[0])
<type 'unicode'>
>>> 

#v-


  // Klaus

-- 
 ><> 	vandag, môre, altyd saam	/JOIN #linux.dk @ irc.oftc.net




More information about the Python-list mailing list