Py_SET_TYPE

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

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

Meta