This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2011年03月23日 00:20 by techtonik, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| 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". |
|||
| msg379380 - (view) | Author: Eryk Sun (eryksun) * (Python triager) | Date: 2020年10月22日 23:22 | |
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). |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:15 | admin | set | github: 55855 |
| 2020年10月22日 23:22:40 | eryksun | set | status: open -> closed type: behavior nosy: + eryksun messages: + msg379380 resolution: out of date stage: resolved |
| 2020年10月22日 22:53:10 | iritkatriel | set | versions: + Python 3.8, Python 3.9, Python 3.10, - Python 3.2 |
| 2019年04月26日 18:19:34 | BreamoreBoy | set | nosy:
- BreamoreBoy |
| 2014年10月02日 00:30:27 | BreamoreBoy | set | nosy:
+ BreamoreBoy messages: + msg228144 |
| 2013年10月14日 13:57:32 | georg.brandl | set | nosy:
+ benjamin.peterson |
| 2011年03月23日 00:20:45 | techtonik | create | |