From b033ecc88f92e8d83b9679de666e142175d4dd6b 2023-11-24 07:40:47 From: Hanno Perrey Date: 2023-11-24 07:40:47 Subject: [PATCH] Clarify comment in IPython/terminal/pt_inputhooks/qt.py Co-authored-by: Carlos Cordoba --- diff --git a/IPython/terminal/pt_inputhooks/qt.py b/IPython/terminal/pt_inputhooks/qt.py index 638ea2b..2f3f491 100644 --- a/IPython/terminal/pt_inputhooks/qt.py +++ b/IPython/terminal/pt_inputhooks/qt.py @@ -84,5 +84,7 @@ def inputhook(context): _exec(event_loop) finally: notifier.setEnabled(False) - # make sure that the QObject is being deleted + + # This makes sure that the event loop is garbage collected. + # See issue 14240. event_loop.setParent(None)