diff --git a/Python.pod b/Python.pod index c3c288a..e78b248 100644 --- a/Python.pod +++ b/Python.pod @@ -201,6 +201,16 @@ constants C<$Inline::Python::Boolean::true> and C<$Inline::Python::Boolean::false> if it is important that the value is of type Boolean in Python. +=head1 Signal Handlers + +Python overrides C<$SIG{INT}> such that SIGINT signals are then ignored by +the rest of the Perl code unless the handler is explicitly reset +afterwards. eg: + + use Inline Python => 'print "python called"'; + $SIG{INT} = 'DEFAULT'; # Without this the loop is uninterruptible + while (1) { } + =head1 Using Perl inside Python (inside Perl) This section doesn't talk at all about C. It's about how