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 mark.dickinson
Recipients mark.dickinson
Date 2016-09-10.19:49:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473536959.93.0.176407274769.issue28069@psf.upfronthosting.co.za>
In-reply-to
Content
Modules/signalmodule.c contains this code:

    if (handler == IgnoreHandler)
        func = SIG_IGN;
    else if (handler == DefaultHandler)
        func = SIG_DFL;
    ...

Here IgnoreHandler and DefaultHandler are ints. The code above effectively does an "is" comparison with those ints, assuming that SIG_IGN and SIG_DFL are amongst the small interned ints.
History
Date User Action Args
2016-09-10 19:49:19mark.dickinsonsetrecipients: + mark.dickinson
2016-09-10 19:49:19mark.dickinsonsetmessageid: <1473536959.93.0.176407274769.issue28069@psf.upfronthosting.co.za>
2016-09-10 19:49:19mark.dickinsonlinkissue28069 messages
2016-09-10 19:49:19mark.dickinsoncreate