5.3.1 Memory Usage

Here is the memory usage of an integer mod int object on a 32-bit system:
4 an int (the underlying value)
4 pointer to the parent
4 pointer to the modulus
4 pointer to the function call table
8 PyObject_HEAD  (pointer to type object and reference count)
So a single integer mod takes 24 bytes.

IDEA: For a small field, one could store every element, then just have lots of copies of pointers to the same thing, which would save a ton of memory.

See About this document... for information on suggesting changes.