George Slavin added the comment:

I can reproduce this issue with Python 2.7.12 and Python 3.5.2 on a Arch linux 
VM using the python script provided, but I think this is an error in the code. 

The repro is tied to the time.sleep call in the try block.  If I do 
time.sleep(1), I can reproduce the issue almost every time (with or without 
ctypes).  When the time.sleep() call is too short, you reach the finally block 
before the main thread receives the signal.  Because you're in the finally 
block, the exception isn't caught.

----------
nosy: +gslavin

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27889>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to