Why doesn't Python include non-blocking keyboard input function?

Marko Rauhamaa marko at pacujo.net
Fri Oct 28 04:59:23 EDT 2016


Christian Gollwitzer <auriocus at gmx.de>:

> Am 28.10.16 um 09:33 schrieb Marko Rauhamaa:
> I am just not convinced that so many people need to implement
> something like readline.

I don't know. How would you implement "less" in Python? How would you
implement "nethack" in Python?

Well, Python does offer it all. You do it like you would in C. You set
the terminal mode.

When in Linux, do as the Linux system programmers do. I'm glad Python
hasn't tried to hide Linux under shoddy abstractions -- or at least I'm
not forced to use them.


Marko



More information about the Python-list mailing list