On Thu, Nov 24, 2011 at 2:55 PM, Steven D'Aprano
<steve+comp.lang.pyt...@pearwood.info> wrote:
> I'm looking for a way to interrupt a long-running function on a key
> press, but without halting the function.

I assume there's a reason for not using Ctrl-C and SIGINT with the
signal module?

This looks like the classic "sigint handler sets a flag that the main
loop polls" structure.

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to