Skip to content

Instantly share code, notes, and snippets.

@Makman2
Makman2 / ctype_async_raise.py
Last active August 31, 2015 00:55 — forked from liuw/ctype_async_raise.py
Nasty hack to raise exception for other threads
#!/usr/bin/env python
# liuw
# Nasty hack to raise exception for other threads
import ctypes # Calm down, this has become standard library since 2.5
import threading
import time
NULL = 0