[issue46408] signal module wrongly relies on small int singletons

2022-01-17 Thread Christian Heimes
Christian Heimes added the comment: Yes, it's a duplicate. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46408] signal module wrongly relies on small int singletons

2022-01-17 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Turn SIG_DFL and SIG_IGN into functions ___ Python tracker

[issue46408] signal module wrongly relies on small int singletons

2022-01-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See msg234768 and issue23325. I propose to close this as a duplicate of issue23325. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue46408] signal module wrongly relies on small int singletons

2022-01-17 Thread Christian Heimes
New submission from Christian Heimes : The signal.signal() function directly compares PyObject *handler with PyObject *modstate->ignore_handler. This works on most platforms because they are both small ints and Python uses singletons for cached small ints. The assumption breaks when Python is