mirror of
https://github.com/python/cpython
synced 2026-09-29 11:35:29 +03:00
Various fixups (most suggested by Armin Rigo).
This commit is contained in:
parent
e2c277a69f
commit
50a4bb325c
3 changed files with 97 additions and 40 deletions
|
|
@ -20,6 +20,12 @@ typedef struct {
|
|||
PyAPI_DATA(PyTypeObject) PySet_Type;
|
||||
PyAPI_DATA(PyTypeObject) PyFrozenSet_Type;
|
||||
|
||||
|
||||
#define PyAnySet_Check(ob) \
|
||||
((ob)->ob_type == &PySet_Type || (ob)->ob_type == &PyFrozenSet_Type || \
|
||||
PyType_IsSubtype((ob)->ob_type, &PySet_Type) || \
|
||||
PyType_IsSubtype((ob)->ob_type, &PyFrozenSet_Type))
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue