Would be nice to know how this actually works; docs dont say much about how the tool injects the code into the running process.
[1] http://aosabook.org/en/gdb.html [2] https://docs.python.org/2/c-api/veryhigh.html
This is why I wrote https://pypi.python.org/pypi/manhole - I couldn't afford hosing up (deadlocking) my processes, and it happen pretty often with pyrasite in my usecases. Have in mind that manhole is not that flexible as it uses different technique.