Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Note in POD about SIGINT handling #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Python.pod
Original file line number Diff line number Diff line change
Expand Up @@ -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<Inline::Python>. It's about how
Expand Down