| author | Tero Marttila <terom@fixme.fi> |
| Sun, 16 Aug 2009 19:20:55 +0300 | |
| changeset 8 | b3880dafbab1 |
| parent 7 | 74fde84264b1 |
| child 11 | 7ae92c2b433f |
| permissions | -rw-r--r-- |
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