Re: select.select() on windows

2005-10-27 Thread Maksim Kasimov
yes, i missed, sorry Dennis Lee Bieber wrote: > On Wed, 26 Oct 2005 11:29:17 +0300, Maksim Kasimov > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > >>you have to use non-block readining. >> >>http://docs.python.org/lib/module-select.html: >>A time-out value of zero specifi

Re: select.select() on windows

2005-10-26 Thread Ben Sizer
jas wrote: > I am currently using subprocess to execute a command. Then I read from > it's stdout...however, this is hanging on a read..waiting for more > bytes. So what I would like is to timeout...and select.selec() seems > to be what I need. Except I don't have a socket, i have stdout. > > A

Re: select.select() on windows

2005-10-26 Thread Maksim Kasimov
you have to use non-block readining. http://docs.python.org/lib/module-select.html: A time-out value of zero specifies a poll and never blocks. jas wrote: > I am currently using subprocess to execute a command. Then I read from > it's stdout...however, this is hanging on a read..waiting for mor

select.select() on windows

2005-10-25 Thread jas
I am currently using subprocess to execute a command. Then I read from it's stdout...however, this is hanging on a read..waiting for more bytes. So what I would like is to timeout...and select.selec() seems to be what I need. Except I don't have a socket, i have stdout. Any suggestions on how t