Can read() be non-blocking?
prologic at shortcircuit.net.au
Fri Nov 7 03:44:59 CET 2008
On Fri, Nov 7, 2008 at 8:54 AM, Thomas Christensen
<thomasc at thomaschristensen.org> wrote:
> Is there a way to read non-blocking? Or maybe event a better way in
> generel to handle this situation?
Check out circuits . It has a Component
called Stdin  which allows you to have
non-blocking Standard Input that I use
for getting input from the user. (works
only on Linux though). You may be able
to adapt this to suite your needs.
My telnet  example shows how this
Stdin component is used.
-- "Problems are solved by method"
More information about the Python-list