import select, sys ready, _, _ = select.select([sys.stdin], [], [], 0.025) type(ready)