PyObject_VAR_HEAD

PyObject_VAR_HEAD defines the initial segment of all variable-size container objects. These end with a declaration of an array with 1 element, but enough space is malloc'ed so that the array actually has room for ob_size elements. Note that ob_size is an element count, not necessarily a byte count.

  1. mixintemplate PyObject_VAR_HEAD()
  2. mixintemplate PyObject_VAR_HEAD()
    version(!Python_3_0_Or_Later)
    extern (C)
    mixin template PyObject_VAR_HEAD () {}

Members

Mixins

__anonymous
mixin PyObject_HEAD
Undocumented in source.

Variables

ob_size
Py_ssize_t ob_size;

_

Mixed In Members

From mixin PyObject_HEAD

__anonymous
mixin _PyObject_HEAD_EXTRA
Undocumented in source.
ob_refcnt
Py_ssize_t ob_refcnt;

_

ob_type
PyTypeObject* ob_type;

_

Meta