[python-win32] Repr, and Unicode type [Was: Get key press in Windows 7]

John Sampson jrs.idx at ntlworld.com
Fri Nov 28 09:46:15 CET 2014


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'.

Thank you for the explanation of 'repr'. The issue turned out to be the 
inclusion of 'repr' in the sample code without evidence or explanation 
of its purpose there. Once I was given a clue that 'repr' was the 
problem and I eliminated it things became clear.

Regards

JohnSampson


More information about the python-win32 mailing list