PyObject_InitVar

Don't allocate memory. Instead of a 'type' parameter, take a pointer to a new object (allocated by an arbitrary allocator), and initialize its object header fields.

  1. PyObject_BorrowedRef* PyObject_Init(PyObject*, PyTypeObject*)
  2. Borrowed!PyVarObject* PyObject_InitVar(PyVarObject*, PyTypeObject*, Py_ssize_t)
    extern (C)
    PyObject_InitVar

Meta