From a690a9967e715663b7a421c9ebdad91381cdf1e4 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 16 Nov 2003 16:17:49 +0000 Subject: * Migrate set() and frozenset() from the sandbox. * Install the unittests, docs, newsitem, include file, and makefile update. * Exercise the new functions whereever sets.py was being used. Includes the docs for libfuncs.tex. Separate docs for the types are forthcoming. --- Include/setobject.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Include/setobject.h (limited to 'Include/setobject.h') diff --git a/Include/setobject.h b/Include/setobject.h new file mode 100644 index 0000000000..eeffa8ad46 --- /dev/null +++ b/Include/setobject.h @@ -0,0 +1,26 @@ + +/* 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 */ +} PySetObject; + +PyAPI_DATA(PyTypeObject) PySet_Type; +PyAPI_DATA(PyTypeObject) PyFrozenSet_Type; + +#ifdef __cplusplus +} +#endif +#endif /* !Py_SETOBJECT_H */ -- cgit v1.2.1