[Pyrex] catching ctrl-C: simple example?
Martin Albrecht
malb at informatik.uni-bremen.de
Sun Jul 2 10:52:10 UTC 2006
On Sunday 02 July 2006 12:35, Brian Blais wrote:
> Hello,
>
> Is there a simple way to catch a ctrl-C when running a Pyrex function? I
> thought I saw it somewhere, but my search through the docs, and online
> didn't come up with it.
>
>
> thanks,
>
>
> Brian Blais
We're using some macros & c-functions written by William Stein in SAGE to
register signal handlers to catch ctrl-c. You may find them at:
http://modular.math.washington.edu/sage/dist/src/sage-darcs/sage/ext/
. Just grabbing the interrupt.* files should be enough.
Hope this helps,
Martin
--
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
_www: http://www.informatik.uni-bremen.de/~malb
_icq: 177334829
_jab: martinralbrecht at jabber.ccc.de
More information about the Pyrex
mailing list