Guido van Rossum | f70e43a | 1991-02-19 12:39:46 +0000 | [diff] [blame] | 1 | |
Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame] | 2 | /* Module object interface */ |
| 3 | |
Fred Drake | 3cf4d2b | 2000-07-09 00:55:06 +0000 | [diff] [blame] | 4 | #ifndef Py_MODULEOBJECT_H |
| 5 | #define Py_MODULEOBJECT_H |
| 6 | #ifdef __cplusplus |
| 7 | extern "C" { |
| 8 | #endif |
| 9 | |
Mark Hammond | 91a681d | 2002-08-12 07:21:58 +0000 | [diff] [blame] | 10 | PyAPI_DATA(PyTypeObject) PyModule_Type; |
Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame] | 11 | |
Guido van Rossum | b875509 | 2001-09-10 18:21:59 +0000 | [diff] [blame] | 12 | #define PyModule_Check(op) PyObject_TypeCheck(op, &PyModule_Type) |
Tim Peters | 59c9a64 | 2001-09-13 05:38:56 +0000 | [diff] [blame] | 13 | #define PyModule_CheckExact(op) ((op)->ob_type == &PyModule_Type) |
Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame] | 14 | |
Jeremy Hylton | af68c87 | 2005-12-10 18:50:16 +0000 | [diff] [blame] | 15 | PyAPI_FUNC(PyObject *) PyModule_New(const char *); |
Mark Hammond | 91a681d | 2002-08-12 07:21:58 +0000 | [diff] [blame] | 16 | PyAPI_FUNC(PyObject *) PyModule_GetDict(PyObject *); |
| 17 | PyAPI_FUNC(char *) PyModule_GetName(PyObject *); |
| 18 | PyAPI_FUNC(char *) PyModule_GetFilename(PyObject *); |
| 19 | PyAPI_FUNC(void) _PyModule_Clear(PyObject *); |
Guido van Rossum | a330996 | 1993-07-28 09:05:47 +0000 | [diff] [blame] | 20 | |
| 21 | #ifdef __cplusplus |
| 22 | } |
| 23 | #endif |
| 24 | #endif /* !Py_MODULEOBJECT_H */ |