[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Re: Function stopping a function
From:       Donn Ingle <donn.ingle () gmail ! com>
Date:       2007-11-23 6:10:46
Message-ID: fi5qph$6mn$1 () ger ! gmane ! org
[Download RAW message or body]

> For instance, lenghty_function() executes, when an
> external event triggers cancel(), which is supposed to
> abruptly stop lengthy_function(), reset some variables
> and exit immediately.
I would set a variable someplace (perhaps globally) that gets tested in
lengthy_function()'s loop and issues a break.

If it's threaded then colour me clueless.

\d

-- 
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic