Staging
v0.5.1
https://github.com/python/cpython
Revision 5089a38af2b90dfe51bbf157ff38227c85eff687 authored by Georg Brandl on 06 January 2010, 17:43:06 UTC, committed by Georg Brandl on 06 January 2010, 17:43:06 UTC
1 parent 202eb90
Raw File
Tip revision: 5089a38af2b90dfe51bbf157ff38227c85eff687 authored by Georg Brandl on 06 January 2010, 17:43:06 UTC
Small fixes to test_cmd: fix signature of do_shell, remove duplicate import, add option to run the custom Cmd class.
Tip revision: 5089a38
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) (Py_TYPE(op) == &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