Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f614c3c

Browse files
committed
note Python issue that requires checking if SIGINT handler is callable
1 parent 6f85cbf commit f614c3c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

IPython/kernel/zmq/parentpoller.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ def run(self):
132132
handle = handles[result - WAIT_OBJECT_0]
133133

134134
if handle == self.interrupt_handle:
135+
# check if signal handler is callable
136+
# to avoid 'int not callable' error (Python issue #23395)
135137
if callable(signal.getsignal(signal.SIGINT)):
136138
interrupt_main()
137139

0 commit comments

Comments
 (0)