[Python-checkins] CVS: python/dist/src/Include listobject.h,2.22,2.23

Tim Peters tim_one@users.sourceforge.net
Fri, 05 Oct 2001 13:41:40 -0700


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

Modified Files:
	listobject.h 
Log Message:
Introduced the oddly-missing PyList_CheckExact(), and used it to replace
a hard-coded type check.


Index: listobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/listobject.h,v
retrieving revision 2.22
retrieving revision 2.23
diff -C2 -d -r2.22 -r2.23
*** listobject.h	2001/08/02 04:15:00	2.22
--- listobject.h	2001/10/05 20:41:38	2.23
***************
*** 28,31 ****
--- 28,32 ----
  
  #define PyList_Check(op) PyObject_TypeCheck(op, &PyList_Type)
+ #define PyList_CheckExact(op) ((op)->ob_type == &PyList_Type)
  
  extern DL_IMPORT(PyObject *) PyList_New(int size);