Py_SET_REFCNT

Not part of the python api, but annoying to do without.

  1. void Py_SET_REFCNT(T* ob, int refcnt)
    extern (C)
    void
    Py_SET_REFCNT
    (
    T
    )
    (
    T* ob
    ,
    int refcnt
    )
  2. void Py_SET_TYPE(T* ob, PyTypeObject* tipo)
  3. void Py_SET_SIZE(T* ob, Py_ssize_t size)

Meta