PyModule_Check() now checks for subtype of module, as it should.

This commit is contained in:
Guido van Rossum 2001-09-10 18:21:59 +00:00
parent d6e40e24f8
commit b875509310
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ extern "C" {
extern DL_IMPORT(PyTypeObject) PyModule_Type; extern DL_IMPORT(PyTypeObject) PyModule_Type;
#define PyModule_Check(op) ((op)->ob_type == &PyModule_Type) #define PyModule_Check(op) PyObject_TypeCheck(op, &PyModule_Type)
extern DL_IMPORT(PyObject *) PyModule_New(char *); extern DL_IMPORT(PyObject *) PyModule_New(char *);
extern DL_IMPORT(PyObject *) PyModule_GetDict(PyObject *); extern DL_IMPORT(PyObject *) PyModule_GetDict(PyObject *);