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

2014-11-28 Thread John Sampson
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

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

2014-11-28 Thread Werner
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) In Py3.4: a = u'x' type(a) Note that u

[python-win32] Python: using stdout instead of stderr

2014-11-28 Thread LiJoe
Hi, I am new for Python user under windows, so any suggestion would be help. :) Currently i am using Cython 2.7.2 under windows, i found that Python sends command prompt(that is ">>>") to stderr instead of stdout, now i need to change it from stderr to stdout. I have check the source code an