stdio

How to check potentially empty stdin without waiting for input?

How to check potentially empty stdin without waiting for input? Question: I am attempting to read from keyboard input without waiting for input. The purpose is to be used in an "infinite" loop aka while True:. Thus far I’ve been trying to manipulate the readchar library https://pypi.python.org/pypi/readchar/0.6 , but with no luck. While it doesn’t …

Total answers: 1