]> granicus.if.org Git - python/commitdiff
Factor-out common code with a new macro
authorRaymond Hettinger <python@rcn.com>
Mon, 28 Jan 2008 21:48:07 +0000 (21:48 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 28 Jan 2008 21:48:07 +0000 (21:48 +0000)
Doc/c-api/set.rst

index 2ed93e926b4664b8c0499b58e60b3ed58054efeb..0aa6bcecda56d0f669790de47effe297913f1b4d 100644 (file)
@@ -52,6 +52,12 @@ The following type check macros work on pointers to any Python object. Likewise,
 the constructor functions work with any iterable Python object.
 
 
+.. cfunction:: int PySet_Check(PyObject *p)
+
+   Return true if *p* is a :class:`set` object or an instance of a subtype.
+
+   .. versionadded:: 2.6
+
 .. cfunction:: int PyAnySet_Check(PyObject *p)
 
    Return true if *p* is a :class:`set` object, a :class:`frozenset` object, or an