Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: msvcrt.getch prints twice inside loop
Post: RE: msvcrt.getch prints twice inside loop

Good point. I think I get that from converting character and string types in C++. It drives me insane. I wish I could you use python syntax for C++ code.
ReallyBigTeeth General Coding Help 5 6,942 Sep-04-2018, 06:54 AM
    Thread: msvcrt.getch prints twice inside loop
Post: RE: msvcrt.getch prints twice inside loop

I just realised I have one Windows 10 computer not updated to 1803 yet, and sure enough, msvcrt.getch() does not return the scan code. Only one call to msvcrt.getch() is made when in a loop: The sam...
ReallyBigTeeth General Coding Help 5 6,942 Jun-24-2018, 12:23 AM
    Thread: msvcrt.getch prints twice inside loop
Post: RE: msvcrt.getch prints twice inside loop

Snippsat, I didn't think I'd get such a helpful response so quickly. I think I understand what is happening now. When I run: import msvcrt count = 0 while True: count += 1 character = msvc...
ReallyBigTeeth General Coding Help 5 6,942 Jun-23-2018, 05:29 AM
    Thread: msvcrt.getch prints twice inside loop
Post: msvcrt.getch prints twice inside loop

A recent Windows update (Windows 10 version 1803 feature update) seems to have changed the behaviour of msvcrt.getch(). I confirmed this by testing on a second computer before and after the update. ...
ReallyBigTeeth General Coding Help 5 6,942 Jun-22-2018, 09:49 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020