Commit ddf24861 authored by scoder's avatar scoder Committed by GitHub

Merge pull request #1980 from jdemeyer/type_functions_except

Add 'except' values for various function types
parents c0cbb673 4e87c5ef
......@@ -10,26 +10,26 @@ cdef extern from "Python.h":
ctypedef object (*unaryfunc)(object)
ctypedef object (*binaryfunc)(object, object)
ctypedef object (*ternaryfunc)(object, object, object)
ctypedef int (*inquiry)(object)
ctypedef Py_ssize_t (*lenfunc)(object)
ctypedef int (*inquiry)(object) except -1
ctypedef Py_ssize_t (*lenfunc)(object) except -1
ctypedef object (*ssizeargfunc)(object, Py_ssize_t)
ctypedef object (*ssizessizeargfunc)(object, Py_ssize_t, Py_ssize_t)
ctypedef int (*ssizeobjargproc)(object, Py_ssize_t, object)
ctypedef int (*ssizessizeobjargproc)(object, Py_ssize_t, Py_ssize_t, object)
ctypedef int (*objobjargproc)(object, object, object)
ctypedef int (*objobjproc)(object, object)
ctypedef int (*ssizeobjargproc)(object, Py_ssize_t, object) except -1
ctypedef int (*ssizessizeobjargproc)(object, Py_ssize_t, Py_ssize_t, object) except -1
ctypedef int (*objobjargproc)(object, object, object) except -1
ctypedef int (*objobjproc)(object, object) except -1
ctypedef Py_hash_t (*hashfunc)(object)
ctypedef Py_hash_t (*hashfunc)(object) except -1
ctypedef object (*reprfunc)(object)
ctypedef int (*cmpfunc)(object, object)
ctypedef int (*cmpfunc)(object, object) except -2
ctypedef object (*richcmpfunc)(object, object, int)
# The following functions use 'PyObject*' as first argument instead of 'object' to prevent
# accidental reference counting when calling them during a garbage collection run.
ctypedef void (*destructor)(PyObject*)
ctypedef int (*visitproc)(PyObject*, void *)
ctypedef int (*traverseproc)(PyObject*, visitproc, void*)
ctypedef int (*visitproc)(PyObject*, void *) except -1
ctypedef int (*traverseproc)(PyObject*, visitproc, void*) except -1
ctypedef object (*descrgetfunc)(object, object, object)
ctypedef int (*descrsetfunc)(object, object, object) except -1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment