Long Integer Objects

PyLongObject
This subtype of PyObject represents a Python long integer object.

PyTypeObject PyLong_Type
This instance of PyTypeObject represents the Python long integer type.

int PyLong_Check(PyObject *p)
Returns true if its argument is a PyLongObject.

PyObject * PyLong_FromLong(long)

PyObject * PyLong_FromUnsignedLong(unsigned long)

PyObject * PyLong_FromDouble(double)

long PyLong_AsLong(PyObject *)

unsigned long PyLong_AsUnsignedLong(PyObject )

double PyLong_AsDouble(PyObject *)

PyObject * PyLong_FromString(char *, char **, int)



guido@python.org