non-blocking sys.stdin.read() on win32?
Michal Wallace
sabren at manifestation.com
Sun Jan 20 23:02:30 EST 2002
On Sun, 20 Jan 2002, Jason Orendorff wrote:
> > I want to just be able to call select() on sys.stdin and
> > then, if appropriate, read more than one line of, but it
> > doesn't let me, because on win32, python's select() only
> > works for sockets.
>
> Use two threads: one with a read/send loop and one with
> a recv/write loop.
Thanks Jason (and Laurent)!
I borrowed some of Sam's code from Medusa...
I'll post what this is all about as soon as I figure out one
last piece...
Cheers,
- Michal http://www.sabren.net/ sabren at manifestation.com
------------------------------------------------------------
Give your ideas the perfect home: http://www.cornerhost.com/
cvs - weblogs - php - linux shell - perl/python/cgi - java
------------------------------------------------------------
More information about the Python-list
mailing list