1 2cdef extern from "Python.h": 3 ##################################################################### 4 # 5.5 Parsing arguments and building values 5 ##################################################################### 6 ctypedef struct va_list 7 int PyArg_ParseTuple(object args, char *format, ...) except 0 8 int PyArg_VaParse(object args, char *format, va_list vargs) except 0 9 int PyArg_ParseTupleAndKeywords(object args, object kw, char *format, char *keywords[], ...) except 0 10 int PyArg_VaParseTupleAndKeywords(object args, object kw, char *format, char *keywords[], va_list vargs) except 0 11 int PyArg_Parse(object args, char *format, ...) except 0 12 int PyArg_UnpackTuple(object args, char *name, Py_ssize_t min, Py_ssize_t max, ...) except 0 13