kbhit(returns true if keypress is waiting to be read locking(fdmodenbyteslocks part of filegiven file descriptor from the runtime nbytes is the number of bytes to lock relative to the current file pointer mode is one of the following integerssetting description unlocks the file region (lk_unlcklocks the file region (lk_locklocks the file regionnonblocking (lk_nblcklocks for writing (lk_rlcklocks for writingnonblocking (lk_nbrlck attempts to acquire lock that takes more than approximately seconds results in an ioerror exception open_osfhandle(handleflagscreates runtime file descriptor from the file handle handle flags is the bitwise or of os o_appendos o_rdonlyand os o_text returns an integer file descriptor that can be used as parameter to os fdopen(to create file object putch(charprints the character char to the console without buffering putwch(charthe same as putch(except that char is unicode character setmode(fdflagssets the line-end translation mode for file descriptor fd flags is os o_text for text mode and os o_binary for binary mode ungetch(charcauses the character char to be "pushed backinto the console buffer it will be the next character read by getch(or getche(ungetwch(charthe same as ungetch(except that char is unicode character note wide variety of win extensions are available that provide access to the microsoft foundation classescom componentsgraphical user interfacesand so forth these topics are far beyond the scope of this bookbut detailed information about many of these topics is available in python programming on win by mark hammond and andy robinson ( 'reilly associates alsoextensive list of contributed modules for use under windows lib fl ff