aboutsummaryrefslogtreecommitdiffstats
path: root/python/gevent/python.pxd
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-07-12 23:40:30 -0700
committerJames Taylor <user234683@users.noreply.github.com>2018-07-12 23:41:07 -0700
commitc3b9f8c4582882cd1f768b0727eca75475bb4f94 (patch)
tree5b4a1c693fd5b7416f1d5a75862e633502e77ca7 /python/gevent/python.pxd
parentfe9fe8257740529f5880693992e4eeca35c7ea3e (diff)
downloadyt-local-c3b9f8c4582882cd1f768b0727eca75475bb4f94.tar.lz
yt-local-c3b9f8c4582882cd1f768b0727eca75475bb4f94.tar.xz
yt-local-c3b9f8c4582882cd1f768b0727eca75475bb4f94.zip
track embedded python distribution
Diffstat (limited to 'python/gevent/python.pxd')
-rw-r--r--python/gevent/python.pxd17
1 files changed, 17 insertions, 0 deletions
diff --git a/python/gevent/python.pxd b/python/gevent/python.pxd
new file mode 100644
index 0000000..b4635b1
--- /dev/null
+++ b/python/gevent/python.pxd
@@ -0,0 +1,17 @@
+cdef extern from "Python.h":
+ struct PyObject:
+ pass
+ ctypedef PyObject* PyObjectPtr "PyObject*"
+ void Py_INCREF(PyObjectPtr)
+ void Py_DECREF(PyObjectPtr)
+ void Py_XDECREF(PyObjectPtr)
+ int Py_ReprEnter(PyObjectPtr)
+ void Py_ReprLeave(PyObjectPtr)
+ int PyCallable_Check(PyObjectPtr)
+
+cdef extern from "frameobject.h":
+ ctypedef struct PyThreadState:
+ PyObjectPtr exc_type
+ PyObjectPtr exc_value
+ PyObjectPtr exc_traceback
+ PyThreadState* PyThreadState_GET()