Staging
v0.5.1
https://github.com/python/cpython
Revision 6de2d4da7d8b05b5314087a0f38a56bf4a6d4a4f authored by Martin v. Löwis on 30 August 2004, 09:22:04 UTC, committed by Martin v. Löwis on 30 August 2004, 09:22:04 UTC
1 parent 356a459
Raw File
Tip revision: 6de2d4da7d8b05b5314087a0f38a56bf4a6d4a4f authored by Martin v. Löwis on 30 August 2004, 09:22:04 UTC
Bump Tk version to 8.4.7. Build into tcltk directory.
Tip revision: 6de2d4d
setobject.h

/* Set object interface */

#ifndef Py_SETOBJECT_H
#define Py_SETOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif

/*
This data structure is shared by set and frozenset objects.
*/

typedef struct {
	PyObject_HEAD
	PyObject *data;
	long hash;	/* only used by frozenset objects */
	PyObject *weakreflist; /* List of weak references */
} PySetObject;

PyAPI_DATA(PyTypeObject) PySet_Type;
PyAPI_DATA(PyTypeObject) PyFrozenSet_Type;

#define PyFrozenSet_CheckExact(ob) ((ob)->ob_type == &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
#endif /* !Py_SETOBJECT_H */
back to top