PySetObject

Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Members

Mixins

__anonymous
mixin PyObject_HEAD
Undocumented in source.

Variables

fill
Py_ssize_t fill;

Availability: >= 2.5

hash
C_long hash;

only used by frozenset objects

lookup
setentry* function(PySetObject* so, PyObject* key, C_long hash) lookup;

_

mask
Py_ssize_t mask;

The table contains mask + 1 slots, and that's a power of 2. We store the mask instead of the size because the mask is more frequently needed.

smalltable
setentry[PySet_MINSIZE] smalltable;

_

table
setentry* table;

table points to smalltable for small tables, else to additional malloc'ed memory. table is never NULL! This rule saves repeated runtime null-tests.

used
Py_ssize_t used;

Availability: >= 2.5

weakreflist
PyObject* weakreflist;

List of weak references

Mixed In Members

From mixin PyObject_HEAD

__anonymous
mixin _PyObject_HEAD_EXTRA
Undocumented in source.
ob_refcnt
Py_ssize_t ob_refcnt;

_

ob_type
PyTypeObject* ob_type;

_

Meta