mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Factor-out common code with a new macro
This commit is contained in:
parent
7759a0cd76
commit
e84ada3d95
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue