The PyLongObject is used to store long values in python. The definition of the object is present in the file Include/longobject.h.

typedef struct _longobject PyLongObject; /* Revealed in longintrepr.h */

struct _longobject {
PyObject_VAR_HEAD
digit ob_digit[1];
};

A long object is a set of two digits.

typedef PY_UINT32_T digit;

#define PY_UINT32_T uint32_t

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s