On 11/28/2014 9:46, John Sampson wrote:
In answer to Time Roberts, I saw an item prefixed with 'u' (u'\x1a'). What is the purpose of this prefix? I would have thought it meant 'Unicode' but the type according to Python is 'str'.
In Py2: a = u'x' type(a) <type 'unicode'>
In Py3.4: a = u'x' type(a) <class 'str'> Note that u'' is not available in Py 3.0 - 3.2. See e.g. here for more details: https://docs.python.org/3/howto/pyporting.html?highlight=unicode%20literal#from-future-import-unicode-literals Werner _______________________________________________ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32