[Tutor] need help with msvcrt.getch()

Nick Raptis airscorp at otenet.gr
Tue Jul 27 16:51:47 CEST 2010

On 07/27/2010 05:22 PM, Richard D. Moores wrote:
> Python 3.1 on Vista.
> Please see <http://tutoree7.pastebin.com/f3TaxDBc>.
> I'm trying to recall what I used to know, thus this simple script. But 
> 'y' or 'q' do nothing. What's wrong?
> Thanks,
> Dick Moores
Hi Dick!
I'm not on Windows here so this might be a wild guess.

 From the documentation I gather that msvcrt can work either on binary 
or text mode.
Perhaps you operate in the wrong one and need to switch with 

Anyway, insert some print lines to see what exactly is it that /getch() 
gets and debug from there


More information about the Tutor mailing list