summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-08-24 05:20:30 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-08-24 05:20:30 (GMT)
commit8790a079279009bb0e97df134b77eaedbae3603e (patch)
tree3f35900dae481610b83d80d4a0ca14a348ed86a4 /Doc
parent17689991e6ef5831eae57b2e91f178256d6d3ccb (diff)
downloadcpython-8790a079279009bb0e97df134b77eaedbae3603e.zip
cpython-8790a079279009bb0e97df134b77eaedbae3603e.tar.gz
cpython-8790a079279009bb0e97df134b77eaedbae3603e.tar.bz2
Fix #7579. Add docstrings to msvcrt and adjust some wording for bytes.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/msvcrt.rst18
1 files changed, 9 insertions, 9 deletions
diff --git a/Doc/library/msvcrt.rst b/Doc/library/msvcrt.rst
index d968833..7636b6f 100644
--- a/Doc/library/msvcrt.rst
+++ b/Doc/library/msvcrt.rst
@@ -90,12 +90,12 @@ Console I/O
.. function:: getch()
- Read a keypress and return the resulting character. Nothing is echoed to the
- console. This call will block if a keypress is not already available, but will
- not wait for :kbd:`Enter` to be pressed. If the pressed key was a special
- function key, this will return ``'\000'`` or ``'\xe0'``; the next call will
- return the keycode. The :kbd:`Control-C` keypress cannot be read with this
- function.
+ Read a keypress and return the resulting character as a byte string.
+ Nothing is echoed to the console. This call will block if a keypress
+ is not already available, but will not wait for :kbd:`Enter` to be
+ pressed. If the pressed key was a special function key, this will
+ return ``'\000'`` or ``'\xe0'``; the next call will return the keycode.
+ The :kbd:`Control-C` keypress cannot be read with this function.
.. function:: getwch()
@@ -116,7 +116,7 @@ Console I/O
.. function:: putch(char)
- Print the character *char* to the console without buffering.
+ Print the byte string *char* to the console without buffering.
.. function:: putwch(unicode_char)
@@ -126,8 +126,8 @@ Console I/O
.. function:: ungetch(char)
- Cause the character *char* to be "pushed back" into the console buffer; it will
- be the next character read by :func:`getch` or :func:`getche`.
+ Cause the byte string *char* to be "pushed back" into the console buffer;
+ it will be the next character read by :func:`getch` or :func:`getche`.
.. function:: ungetwch(unicode_char)