Back to index

python3.2  3.2.2
Classes | Defines | Functions | Variables
listobject.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  PyListObject


#define PyList_Check(op)   PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LIST_SUBCLASS)
#define PyList_CheckExact(op)   (Py_TYPE(op) == &PyList_Type)
#define PyList_GET_ITEM(op, i)   (((PyListObject *)(op))->ob_item[i])
#define PyList_SET_ITEM(op, i, v)   (((PyListObject *)(op))->ob_item[i] = (v))
#define PyList_GET_SIZE(op)   Py_SIZE(op)


 PyAPI_DATA (PyTypeObject) PyList_Type
 PyAPI_FUNC (PyObject *) PyList_New(Py_ssize_t size)
 PyAPI_FUNC (Py_ssize_t) PyList_Size(PyObject *)



Class Documentation

struct PyListObject

Definition at line 23 of file listobject.h.

Collaboration diagram for PyListObject:
Class Members
Py_ssize_t allocated
PyObject_VAR_HEAD PyObject ** ob_item

Define Documentation

Definition at line 48 of file listobject.h.

#define PyList_CheckExact (   op)    (Py_TYPE(op) == &PyList_Type)

Definition at line 50 of file listobject.h.

#define PyList_GET_ITEM (   op,
)    (((PyListObject *)(op))->ob_item[i])

Definition at line 69 of file listobject.h.

#define PyList_GET_SIZE (   op)    Py_SIZE(op)

Definition at line 71 of file listobject.h.

#define PyList_SET_ITEM (   op,
)    (((PyListObject *)(op))->ob_item[i] = (v))

Definition at line 70 of file listobject.h.

Function Documentation

PyAPI_FUNC ( PyObject ) [read]

Definition at line 2431 of file pythonrun.c.

    return PyRun_FileExFlags(fp, p, s, g, l, c, NULL);

Definition at line 2410 of file pythonrun.c.

Variable Documentation

Definition at line 54 of file listobject.h.