On 27/07/2010 15:22, 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?
msvcrt.getch returns bytes on Python 3.1; you're comparing against
string. Try
if key == b'y':
... etc.
TJG
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor