[Python-checkins] CVS: python/dist/src/Include moduleobject.h,2.17,2.18

Guido van Rossum gvanrossum@users.sourceforge.net
Mon, 10 Sep 2001 11:22:02 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv18140

Modified Files:
	moduleobject.h 
Log Message:
PyModule_Check() now checks for subtype of module, as it should.


Index: moduleobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/moduleobject.h,v
retrieving revision 2.17
retrieving revision 2.18
diff -C2 -d -r2.17 -r2.18
*** moduleobject.h	2000/09/01 23:29:26	2.17
--- moduleobject.h	2001/09/10 18:21:59	2.18
***************
*** 10,14 ****
  extern DL_IMPORT(PyTypeObject) PyModule_Type;
  
! #define PyModule_Check(op) ((op)->ob_type == &PyModule_Type)
  
  extern DL_IMPORT(PyObject *) PyModule_New(char *);
--- 10,14 ----
  extern DL_IMPORT(PyTypeObject) PyModule_Type;
  
! #define PyModule_Check(op) PyObject_TypeCheck(op, &PyModule_Type)
  
  extern DL_IMPORT(PyObject *) PyModule_New(char *);