Hi, note that this is a question for the cython-users mailing list.
Brian Blais, 27.08.2010 16:11: > I have a loop like: > > try: > for i in range(1000: > do_something_with_a_loop_in_cython() > except KeyboardInterrupt: > cleanup() > > but unless I happen to hit Ctrl-C while it is in the python part, I > get an interrupt ignore warning. Is there a way to catch the Ctrl-C > to prematurely exit out of the cython loop? The C-API of CPython has functions to check for interrupts while executing C code. Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
