[issue11646] 2to3: msvcrt.(get|put)ch -> (get|put)wch

2020-10-22 Thread Eryk Sun


Eryk Sun  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11646] 2to3: msvcrt.(get|put)ch -> (get|put)wch

2020-10-22 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11646] 2to3: msvcrt.(get|put)ch -> (get|put)wch

2019-04-26 Thread Mark Lawrence


Change by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11646] 2to3: msvcrt.(get|put)ch -> (get|put)wch

2014-10-01 Thread Mark Lawrence

Mark Lawrence added the comment:

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

--
nosy: +BreamoreBoy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11646] 2to3: msvcrt.(get|put)ch -> (get|put)wch

2013-10-14 Thread Georg Brandl

Changes by Georg Brandl :


--
nosy: +benjamin.peterson

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11646] 2to3: msvcrt.(get|put)ch -> (get|put)wch

2011-03-22 Thread anatoly techtonik

New submission from anatoly techtonik :

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()

--
components: 2to3 (2.x to 3.0 conversion tool)
messages: 131820
nosy: techtonik
priority: normal
severity: normal
status: open
title: 2to3: msvcrt.(get|put)ch -> (get|put)wch
versions: Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com