Back to index

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

Go to the source code of this file.

Classes

struct  PyModuleDef_Base
struct  PyModuleDef

Defines

#define PyModule_Check(op)   PyObject_TypeCheck(op, &PyModule_Type)
#define PyModule_CheckExact(op)   (Py_TYPE(op) == &PyModule_Type)
#define PyModuleDef_HEAD_INIT

Typedefs

typedef struct PyModuleDef_Base PyModuleDef_Base
typedef struct PyModuleDef PyModuleDef

Functions

 PyAPI_DATA (PyTypeObject) PyModule_Type
 PyAPI_FUNC (PyObject *) PyModule_New(const char *name)
 PyAPI_FUNC (const char *) PyModule_GetName(PyObject *)
 PyAPI_FUNC (void) _PyModule_Clear(PyObject *)
 PyAPI_FUNC (struct PyModuleDef *) PyModule_GetDef(PyObject *)
 PyAPI_FUNC (void *) PyModule_GetState(PyObject *)

Class Documentation

struct PyModuleDef

Definition at line 42 of file moduleobject.h.

Collaboration diagram for PyModuleDef:
Class Members
PyModuleDef_Base m_base
inquiry m_clear
const char * m_doc
freefunc m_free
PyMethodDef * m_methods
const char * m_name
inquiry m_reload
Py_ssize_t m_size
traverseproc m_traverse

Define Documentation

Definition at line 12 of file moduleobject.h.

#define PyModule_CheckExact (   op)    (Py_TYPE(op) == &PyModule_Type)

Definition at line 13 of file moduleobject.h.

Value:
{ \
    PyObject_HEAD_INIT(NULL)    \
    NULL, /* m_init */          \
    0,    /* m_index */         \
    NULL, /* m_copy */          \
  }

Definition at line 35 of file moduleobject.h.


Typedef Documentation

static struct PyModuleDef
Initial value:
 {
       PyModuleDef_HEAD_INIT,
       "atexit",
       atexit__doc__,
       sizeof(atexitmodule_state),
       atexit_methods,
       NULL,
       NULL,
       NULL,
       NULL
}

Definition at line 269 of file atexitmodule.c.


Function Documentation

PyAPI_FUNC ( PyObject ) const
PyAPI_FUNC ( const char *  )

Definition at line 1904 of file object.c.

PyAPI_FUNC ( struct PyModuleDef )
PyAPI_FUNC ( void )