February 2006
Intermediate to advanced
648 pages
14h 53m
English
The msvcrt module provides access to a number of useful functions in the Microsoft Visual C runtime library. This module is available only on Windows.
getch()Reads a keypress and returns the resulting character. This call blocks if a keypress is not available. If the pressed key was a special function key, the call returns '\000' or '\xe0' and the next call returns the keycode. This function doesn’t echo characters to the console, nor can the function be used to read Ctrl+C.
getche()Like getch(), except that characters are echoed (if printable).
get_osfhandle(fd)Returns the file handle for file descriptor fd. Raises IOError if fd is not recognized.
heapmin()Forces the internal Python memory manager to return unused blocks to the operating ...