Skip to content

Instantly share code, notes, and snippets.

View Ricordel's full-sized avatar

Yoann Ricordel Ricordel

View GitHub Profile
@Ricordel
Ricordel / ctype_async_raise.py
Created April 3, 2017 15:16 — 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