diff options
author | Raymond Hettinger <python@rcn.com> | 2003-11-16 16:17:49 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-11-16 16:17:49 (GMT) |
commit | a690a9967e715663b7a421c9ebdad91381cdf1e4 (patch) | |
tree | 1c5d9eeef0ac20efe39f1af11a81d745592596d1 /Include/setobject.h | |
parent | d456849f19fa7b00b6560b67c5388a5a6cd89d0a (diff) | |
download | cpython-a690a9967e715663b7a421c9ebdad91381cdf1e4.zip cpython-a690a9967e715663b7a421c9ebdad91381cdf1e4.tar.gz cpython-a690a9967e715663b7a421c9ebdad91381cdf1e4.tar.bz2 |
* 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.
Diffstat (limited to 'Include/setobject.h')
-rw-r--r-- | Include/setobject.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Include/setobject.h b/Include/setobject.h new file mode 100644 index 0000000..eeffa8a --- /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 */ |