mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
PyModule_Check() now checks for subtype of module, as it should.
This commit is contained in:
parent
d6e40e24f8
commit
b875509310
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ extern "C" {
|
|||
|
||||
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_GetDict(PyObject *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue