[Python-checkins] python/dist/src/Include dictobject.h,2.28,2.29

aimacintyre at users.sourceforge.net aimacintyre at users.sourceforge.net
Thu Dec 25 19:02:25 EST 2003


Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1:/tmp/cvs-serv21089
Modified Files:
	dictobject.h 
Log Message:
The semantics of PyList_Check() and PyDict_Check() changed at 2.2, along
with most other concrete object checks, but the docs weren't brought into
line.
PyList_CheckExact() was added at 2.2 but never documented.
backport candidate.
Index: dictobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/dictobject.h,v
retrieving revision 2.28
retrieving revision 2.29
diff -C2 -d -r2.28 -r2.29
*** dictobject.h	25 Nov 2003 21:12:14 -0000	2.28
--- dictobject.h	26 Dec 2003 00:02:23 -0000	2.29
***************
*** 88,91 ****
--- 88,92 ----
 
 #define PyDict_Check(op) PyObject_TypeCheck(op, &PyDict_Type)
+ #define PyList_CheckExact(op) ((op)->ob_type == &PyDict_Type)
 
 PyAPI_FUNC(PyObject *) PyDict_New(void);


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /