[issue28069] signalmodule.c does "is" comparisons for SIG_IGN and SIG_DFL

2018-08-23 Thread Berker Peksag
Change by Berker Peksag : -- components: +Library (Lib) nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing

[issue28069] signalmodule.c does "is" comparisons for SIG_IGN and SIG_DFL

2016-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This was not a problem before 3.5 since IgnoreHandler and DefaultHandler were singletons exposed in the signal module as SIG_DFL and SIG_IGN. But in issue21076 they were converted to enums. This involves converting between enums and ints. All works only

[issue28069] signalmodule.c does "is" comparisons for SIG_IGN and SIG_DFL

2016-09-10 Thread Mark Dickinson
Mark Dickinson added the comment: Also applies to 2.7, 3.5. -- versions: +Python 2.7, Python 3.5 ___ Python tracker ___

[issue28069] signalmodule.c does "is" comparisons for SIG_IGN and SIG_DFL

2016-09-10 Thread Mark Dickinson
New submission from Mark Dickinson: 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