[issue11646] 2to3: msvcrt.(get|put)ch -> (get|put)wch
Eryk Sun
report at bugs.python.org
Thu Oct 22 19:22:40 EDT 2020
Eryk Sun <eryksun at gmail.com> added the comment:
The bytes type has supported string methods for a long time now. I don't think there's anything else to do here. msvcrt.getch() is a low-level I/O function like os.read(). It should not be automatically converted to msvcrt.getwch(). Unfortunately the function names weren't changed in Python 3. I'd rather that msvcrt.getch() returned str and msvcrt.getchb() returned bytes. Then there would have actually been something for 2to3 to convert (e.g. getch -> getchb, and getwch -> getch).
----------
nosy: +eryksun
resolution: -> out of date
stage: -> resolved
status: open -> closed
type: -> behavior
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue11646>
_______________________________________
More information about the Python-bugs-list
mailing list