@@ -197,12 +197,12 @@ msvcrt_getch(PyObject *self, PyObject *args)
197197PyDoc_STRVAR (getch_doc ,
198198"getch() -> key character\n\
199199\n\
200- Read a keypress and return the resulting character. Nothing is echoed to \n\
201- the console. This call will block if a keypress is not already \n\
202- available, but will not wait for Enter to be pressed. If the pressed key \n\
203- was a special function key, this will return '\\000' or '\\xe0'; the next \n\
204- call will return the keycode. The Control-C keypress cannot be read with \n\
205- this function." );
200+ Read a keypress and return the resulting character as a byte string. \n\
201+ Nothing is echoed to the console. This call will block if a keypress is\n\
202+ not already available, but will not wait for Enter to be pressed. If the\n\
203+ pressed key was a special function key, this will return '\\000' or\n\
204+ '\\xe0'; the next call will return the keycode. The Control-C keypress\n\
205+ cannot be read with this function." );
206206
207207#ifdef _WCONIO_DEFINED
208208static PyObject *
@@ -288,7 +288,7 @@ msvcrt_putch(PyObject *self, PyObject *args)
288288PyDoc_STRVAR (putch_doc ,
289289"putch(char) -> None\n\
290290\n\
291- Print the character char to the console without buffering." );
291+ Print the byte string char to the console without buffering." );
292292
293293#ifdef _WCONIO_DEFINED
294294static PyObject *
@@ -327,8 +327,9 @@ msvcrt_ungetch(PyObject *self, PyObject *args)
327327PyDoc_STRVAR (ungetch_doc ,
328328"ungetch(char) -> None\n\
329329\n\
330- Cause the character char to be \"pushed back\" into the console buffer;\n\
331- it will be the next character read by getch() or getche()." );
330+ Cause the byte string char to be \"pushed back\" into the\n\
331+ console buffer; it will be the next character read by\n\
332+ getch() or getche()." );
332333
333334#ifdef _WCONIO_DEFINED
334335static PyObject *
0 commit comments