This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Alex Brandt, asvetlov, gvanrossum, hlellelid, vstinner, yselivanov
Date 2017-12-20.22:15:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513808134.71.0.213398074469.issue26133@psf.upfronthosting.co.za>
In-reply-to
Content
> `remove_signal_handler()` should do nothing if `sys.is_finalizing()` is true.

I dislike this option.

If you want to use sys.is_finalizing(), I would prefer to modify _UnixSelectorEventLoop.close() to not try to remove signal handler if close() has been called too late during Python finalization. But I also expect a warning in this case, not hide bugs silently.

If you reach this case, close() has probably been called by BaseEventLoop.__del__().
History
Date User Action Args
2017-12-20 22:15:34vstinnersetrecipients: + vstinner, gvanrossum, asvetlov, yselivanov, Alex Brandt, hlellelid
2017-12-20 22:15:34vstinnersetmessageid: <1513808134.71.0.213398074469.issue26133@psf.upfronthosting.co.za>
2017-12-20 22:15:34vstinnerlinkissue26133 messages
2017-12-20 22:15:34vstinnercreate