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 serhiy.storchaka
Recipients barry, eli.bendersky, giampaolo.rodola, serhiy.storchaka, xiang.zhang
Date 2018-08-25.17:42:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1535218949.25.0.56676864532.issue23325@psf.upfronthosting.co.za>
In-reply-to
Content
Numerical values of signal numbers are standardized. signal.signal(15, handler) is valid. SIGTERM is just a handy name for the constant 15.

But SIG_DFL and SIG_IGN are not integers in C (they are special pointers), and it is not declared anywhere that they should be integers in Python. The code that converts them to Python integer is implementation depending (PyLong_FromVoidPtr). Handcrafted SIG_DFL and SIG_IGN are broken by design, because the signal module uses identity comparison for SIG_DFL and SIG_IGN.
History
Date User Action Args
2018-08-25 17:42:29serhiy.storchakasetrecipients: + serhiy.storchaka, barry, giampaolo.rodola, eli.bendersky, xiang.zhang
2018-08-25 17:42:29serhiy.storchakasetmessageid: <1535218949.25.0.56676864532.issue23325@psf.upfronthosting.co.za>
2018-08-25 17:42:29serhiy.storchakalinkissue23325 messages
2018-08-25 17:42:29serhiy.storchakacreate