PySetObject

Members

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

Meta