Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5604

Python • Re: Entering digits without pressing "Enter'

$
0
0
This topic has come up many times, but it is difficult to search for unless you already know that the traditional name for a function that reads a single input character without line buffering is getch().

My version in a post over ten years ago: viewtopic.php?t=69046#p502895

Python 3 is smart enough to always read a full character, rather than just one byte, in a modern .UTF-8 locale.

Statistics: Posted by jojopi — Thu Jul 25, 2024 2:07 pm



Viewing all articles
Browse latest Browse all 5604