PySetObject

Members

Variables

fill
Py_ssize_t fill;

Availability: >= 2.5

hash
Py_hash_t hash;

_

lookup
setentry* function(PySetObject* so, PyObject* key, Py_hash_t 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;

_

Meta