--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/qmsk/net/py.pxd Sun Aug 16 19:01:21 2009 +0300
@@ -0,0 +1,18 @@
+cimport libc
+
+cdef extern from "Python.h" :
+ struct PyObject :
+ pass
+
+ ## string stuff
+ int PyObject_AsCharBuffer (object obj, char **buf, libc.ssize_t *len) except -1
+
+ ## except setting
+ PyObject* PyErr_SetFromErrno (PyObject *type)
+
+ PyObject *PyExc_OSError
+
+# raise OSError with errno
+# XXX: doesn't do anything with func
+cdef int raise_errno (char *func) except -1
+