Staging
v0.8.1
https://github.com/python/cpython
Revision 11da5d5e6f4b0bec88e463d571ba65adc7dda948 authored by Anthony Baxter on 16 March 2005, 04:13:29 UTC, committed by Anthony Baxter on 16 March 2005, 04:13:29 UTC
1 parent 3a3f9cc
Raw File
Tip revision: 11da5d5e6f4b0bec88e463d571ba65adc7dda948 authored by Anthony Baxter on 16 March 2005, 04:13:29 UTC
Patch #1163249 - Correctly handle _POSIX_SEMAPHORES == -1 to mean no
Tip revision: 11da5d5
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(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