PyDictObject

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

ma_fill
Py_ssize_t ma_fill;

_

ma_lookup
PyDictEntry* function(PyDictObject* mp, PyObject* key, Py_hash_t hash) ma_lookup;

_

ma_mask
Py_ssize_t ma_mask;

The table contains ma_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.

ma_smalltable
PyDictEntry[PyDict_MINSIZE] ma_smalltable;

_

ma_table
PyDictEntry* ma_table;

ma_table points to ma_smalltable for small tables, else to additional malloc'ed memory. ma_table is never NULL! This rule saves repeated runtime null-tests in the workhorse getitem and setitem calls.

ma_used
Py_ssize_t ma_used;

_

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