summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/set.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-01-28 21:48:07 (GMT)
committerRaymond Hettinger <python@rcn.com>2008-01-28 21:48:07 (GMT)
commite84ada3d957defaf64a5af4bc359fe866d4b8664 (patch)
treee6264b0e9014b785e692f6cbe0d05528488ed8a5 /Doc/c-api/set.rst
parent7759a0cd76105e6685008da7a1e2deb6e0d37c38 (diff)
downloadcpython-e84ada3d957defaf64a5af4bc359fe866d4b8664.zip
cpython-e84ada3d957defaf64a5af4bc359fe866d4b8664.tar.gz
cpython-e84ada3d957defaf64a5af4bc359fe866d4b8664.tar.bz2
Factor-out common code with a new macro
Diffstat (limited to 'Doc/c-api/set.rst')
-rw-r--r--Doc/c-api/set.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/c-api/set.rst b/Doc/c-api/set.rst
index 2ed93e9..0aa6bce 100644
--- a/Doc/c-api/set.rst
+++ b/Doc/c-api/set.rst
@@ -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