On Tue, Jul 27, 2010 at 07:36, Tim Golden <m...@timgolden.me.uk> wrote:

> 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.
>

Yes! That did it.

Thank you.

Dick
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to