qmsk/net/py.pxd
changeset 50 da394bb715af
parent 22 f6e8d5e37998
child 51 c6b4abfc21da
equal deleted inserted replaced
49:e2f79e68418a 50:da394bb715af
     3 cdef extern from "Python.h" :
     3 cdef extern from "Python.h" :
     4     ctypedef struct PyObject :
     4     ctypedef struct PyObject :
     5         pass
     5         pass
     6 
     6 
     7     ## refcounting
     7     ## refcounting
       
     8     # XXX: does this make cython do some dumb refcounting stuff for the object arg?
       
     9     void Py_INCREF (object o)
       
    10     void Py_DECREF (object o)
       
    11 
     8     void Py_XDECREF (PyObject *obj)
    12     void Py_XDECREF (PyObject *obj)
     9 
    13 
    10     ## object protocol
    14     ## object protocol
    11     # __richcompare__ constants
    15     # __richcompare__ constants
    12     enum :
    16     enum :