[Tutor] while loops causing python.exe to crash on windows

Alex Hall mehgcap at gmail.com
Mon Jun 7 03:37:45 CEST 2010

On 6/6/10, Lie Ryan <lie.1296 at gmail.com> wrote:
> On 06/07/10 11:08, Alex Hall wrote:
>> On 6/6/10, bob gailer <bgailer at gmail.com> wrote:
>>> On 6/6/2010 8:44 PM, Alex Hall wrote:
>>>> --
>>>> Have a great day,
>>>> Alex (msg sent from GMail website)
>>>> mehgcap at gmail.com;http://www.facebook.com/mehgcap
>>> What is your question?
>>> --
>>> Bob Gailer
>>> 919-636-4239
>>> Chapel Hill NC
>> Why would that code cause Windows to consider the process "not
>> responding", and how can I fix this so I can have a sort of "listener"
>> in place, awaiting a change in the "grid.turnOver" variable inside
>> Player.takeTurn() so that the main while loop can switch to the other
>> player once the one player's turn is over? I thought while loops would
>> do it, but Windows sees them as making python.exe unresponsive.
> Would you buy me a crystal ball to foresee what you're talking about?
I am not sure how else to explain it. I want to loop until the value
of a variable changes, but while that loop is taking place, the user
should be able to perform actions set up in a wx.AcceleratorTable.
Looping, though, causes Windows to tell me that python.exe is not
responding, so I have to close the entire thing. I guess I am looking
for a "listener", which will sit in the background and only perform an
action when it detects a certain thing. In this case, a listener to
watch for a variable to turn from False to True, then to act when it
sees that change.
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor

Have a great day,
Alex (msg sent from GMail website)
mehgcap at gmail.com; http://www.facebook.com/mehgcap

More information about the Tutor mailing list