classification
Title: 2to3: msvcrt.(get|put)ch -> (get|put)wch
Type: Stage:
Components: 2to3 (2.x to 3.x conversion tool) Versions: Python 3.2
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: BreamoreBoy, benjamin.peterson, techtonik
Priority: normal Keywords:

Created on 2011-03-23 00:20 by techtonik, last changed 2014-10-02 00:30 by BreamoreBoy.

Messages (2)
msg131820 - (view) Author: anatoly techtonik (techtonik) Date: 2011-03-23 00:20
msvcrt function calls need to be renamed to unicode equivalents, because now they return bytes, which doesn't support string methods used to process the output (e.g. lower()).

http://docs.python.org/py3k/library/msvcrt.html

msvcrt.getch() -> msvcrt.getwch()
msvcrt.getche() -> msvcrt.getwche()
msvcrt.putch() -> msvcrt.putwch()
msvcrt.ungetch() -> msvcrt.ungetwch()
msg228144 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-10-02 00:30
The original function names are still listed and the wide versions have been added to the docs so this can be closed as "out of date".
History
Date User Action Args
2014-10-02 00:30:27BreamoreBoysetnosy: + BreamoreBoy
messages: + msg228144
2013-10-14 13:57:32georg.brandlsetnosy: + benjamin.peterson
2011-03-23 00:20:45techtonikcreate