[python-win32] infinite loop

Tim Roberts timr at probo.com
Fri Jan 4 19:52:49 CET 2008


kNish wrote:
>             I have two py programs. both have while 1: loops. Lets say
> File A has one while 1: loop and File B has another while 1: loop.
> File A has a break statement. File B has no break statement.
>
>             File B is running. I now run File A. This file executes
> the break statement. What I observe is that the File A loops stops
> working. correct me if I am wrong. What happens when two different
> infinite while loops execute one after another. Such that the last
> while loops breaks. Does this cause the first loop to stop too.
>   

No, of course not.  If these are two separate programs in two separate 
Python processes, then they are completely unrelated to each other.  You 
are seeing some other side effect.  Show us some of the code, and we can 
point out where you are going wrong.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list