[Python-checkins] python/dist/src/Doc/api concrete.tex,1.35,1.36

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


Update of /cvsroot/python/python/dist/src/Doc/api
In directory sc8-pr-cvs1:/tmp/cvs-serv21831

Modified Files:
	concrete.tex 
Log Message:
At 2.2, the Py<type>_Check() family of API functions (macros) changed
semantics to include subtypes.  Most concrete object APIs then had
a Py<type>_CheckExact() macro added to test for an object's type
not including subtypes.

The PyDict_CheckExact() macro wasn't created at that time, so I've added
it for API completeness/symmetry - even though nobody has complained
about its absence in the time since 2.2 was released.

Not a backport candidate.


Index: concrete.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/concrete.tex,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** concrete.tex	25 Dec 2003 23:57:52 -0000	1.35
--- concrete.tex	26 Dec 2003 00:07:51 -0000	1.36
***************
*** 1804,1807 ****
--- 1804,1813 ----
  \end{cfuncdesc}
  
+ \begin{cfuncdesc}{int}{PyDict_CheckExact}{PyObject *p}
+   Return true if \var{p} is a dict object, but not an instance of a
+   subtype of the dict type.
+   \versionadded{2.4}
+ \end{cfuncdesc}
+ 
  \begin{cfuncdesc}{PyObject*}{PyDict_New}{}
    Returns a new empty dictionary, or \NULL{} on failure.





More information about the Python-checkins mailing list