Commit dee1d5e1 authored by Raymond Hettinger's avatar Raymond Hettinger

Factor-out common code with a new macro

parent 5c3c485c
...@@ -52,6 +52,12 @@ The following type check macros work on pointers to any Python object. Likewise, ...@@ -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. 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) .. cfunction:: int PyAnySet_Check(PyObject *p)
Return true if *p* is a :class:`set` object, a :class:`frozenset` object, or an Return true if *p* is a :class:`set` object, a :class:`frozenset` object, or an
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment