Skip to content

Instantly share code, notes, and snippets.

Created November 25, 2012 03:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4142240 to your computer and use it in GitHub Desktop.
Save anonymous/4142240 to your computer and use it in GitHub Desktop.
from ctypes import cdll, py_object
testlib = cdll.test
breakit = testlib.breakit
breakit.restype = py_object
breakit.argtype = []
breakit()
#include <Python.h>
PyObject* breakit()
{
PyErr_Format(PyExc_Exception, "D:");
return NULL;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment