about second parameter of signal handler func.
Bjoern Schliessmann
usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Tue Mar 27 01:34:48 EDT 2007
Marco wrote:
> In C, a signal handler function has only one parameter, that is
> signal number. But in Python(import signal), a signal handler
> function has two parameters, the first is signal number, the
> second is "frame"?
>
> What is "frame", please?
Did you bother using help()?
>>> help(signal)
[...]
*** IMPORTANT NOTICE ***
A signal handler function is called with two arguments:
the first is the signal number, the second is the interrupted
stack frame.
Regards,
Björn
--
BOFH excuse #253:
We've run out of licenses
More information about the Python-list
mailing list