![]() |
what u'=' mean???
What
---- u'=' ---- mean?? Ex: args = [u'='.join(k,safe_eval(v) for k, v in attrs.items()] |
Re: what u'=' mean???
On Thu, 17 Jul 2003 12:24:57 -0300, Luiz Siqueira Neto wrote:
> What > ---- > u'=' Its just a unicode string. The string constants in Python can be prefixed with a u. Instead of building a string object for that constant, the interpreter will build a Unicode string object. You can also prefix them with r, to make the interpreter ignore escape codes. For example: >>> print 'a\nb' a b >>> print 'a\\nb' a\nb >>> print r'a\nb' a\nb >>> And you can use the combined ur prefix. -- Ricardo |
| All times are GMT. The time now is 07:16 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.