Staging
v0.5.1
https://github.com/python/cpython
Revision beb572b50ae7fc0ab95be8b91eab877bc630e874 authored by Andrew M. Kuchling on 06 July 2006, 13:57:28 UTC, committed by Andrew M. Kuchling on 06 July 2006, 13:57:28 UTC
1 parent 2d79225
Raw File
Tip revision: beb572b50ae7fc0ab95be8b91eab877bc630e874 authored by Andrew M. Kuchling on 06 July 2006, 13:57:28 UTC
ImportWarning is now silent by default
Tip revision: beb572b
moduleobject.h

/* Module object interface */

#ifndef Py_MODULEOBJECT_H
#define Py_MODULEOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif

PyAPI_DATA(PyTypeObject) PyModule_Type;

#define PyModule_Check(op) PyObject_TypeCheck(op, &PyModule_Type)
#define PyModule_CheckExact(op) ((op)->ob_type == &PyModule_Type)

PyAPI_FUNC(PyObject *) PyModule_New(const char *);
PyAPI_FUNC(PyObject *) PyModule_GetDict(PyObject *);
PyAPI_FUNC(char *) PyModule_GetName(PyObject *);
PyAPI_FUNC(char *) PyModule_GetFilename(PyObject *);
PyAPI_FUNC(void) _PyModule_Clear(PyObject *);

#ifdef __cplusplus
}
#endif
#endif /* !Py_MODULEOBJECT_H */
back to top