PyLongObject

Long integer representation. The absolute value of a number is equal to SUM(for i=0 through abs(ob_size)-1) ob_digiti * 2**(SHIFT*i) Negative numbers are represented with ob_size < 0; zero is represented by ob_size == 0. In a normalized number, ob_digit[abs(ob_size)-1] (the most significant digit) is never zero. Also, in all cases, for all valid i, 0 <= ob_digiti <= MASK. The allocation function takes care of allocating extra memory so that ob_digit[0] ... ob_digit[abs(ob_size)-1] are actually available.

CAUTION: Generic code manipulating subtypes of PyVarObject has to aware that longs abuse ob_size's sign bit.

extern (C)
struct PyLongObject {}

Members

Mixins

__anonymous
mixin PyObject_VAR_HEAD
Undocumented in source.

Variables

ob_digit
ushort[1] ob_digit;
Undocumented in source.

Mixed In Members

From mixin PyObject_VAR_HEAD

__anonymous
mixin PyObject_HEAD
Undocumented in source.
ob_size
Py_ssize_t ob_size;

_

Meta