wait() on Popen4 object from thread?
Grant Edwards
grante at visi.com
Tue May 30 09:51:09 EDT 2006
On 2006-05-30, Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
> On Tue, 30 May 2006 03:01:54 -0000, Grant Edwards <grante at visi.com>
> declaimed the following in comp.lang.python:
>
>> watching = False
>
> You do realize that this is a LOCAL definition, and is NOT the same
> "watching" your later loop is waiting on...
>
>> while watching:
>> time.sleep(0.1)
Oops, forgot the global declaration.
However, the presence/absence of the global affect whether the
OSError happens or not.
--
Grant Edwards grante Yow! Do I hear th'
at SPINNING of various
visi.com WHIRRING, ROUND, and WARM
WHIRLOMATICS?!
More information about the Python-list
mailing list