I try this code in Linux:
import os
import signal
for i in range(10000):
print i
if i==6666:
os.kill(os.getpid(),signal.SIGINT)
it works well. But it doesn't work in Windows, because the attribute 'kill' is not present in os module for Windows
How can I send SIGINT to self program in Windows?