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

Marko Rauhamaa marko at pacujo.net
Thu Oct 27 06:50:14 EDT 2016


BartC <bc at freeuk.com>:

> "There's a room in your house with no door to it; how do I get in?"
>
> "There's no need for a door because no one ever uses that room! But
> you can get in through the chimney - if you /have/ to."

+1

> On Linux you can't assume any such resources except some apparently
> 1970s-style terminal handling, from what I can figure out.)

Correct.

> My language:
>
> function peek(p,t=byte)=
>     return makeref(p,t)^
> end
> ...
> print peek(0x400'000)
>
> It 'works' on both Windows and Linux

So how do you draw a big, yellow happy face in the top right corner
using your language?


Marko



More information about the Python-list mailing list