(PyLong_AsLong obj)
Return a C long representation of obj. If obj is not an instance of PyLongObject, first call its int() method (if present) to convert it to a PyLongObject.
Raise OverflowError if the value of obj is out of range for a long.
Returns -1 on error. Use PyErr_Occurred() to disambiguate.
Return a C long representation of obj. If obj is not an instance of PyLongObject, first call its __int__() method (if present) to convert it to a PyLongObject. Raise OverflowError if the value of obj is out of range for a long. Returns -1 on error. Use PyErr_Occurred() to disambiguate.
(PyLong_AsLongLong obj)
Return a C long long representation of obj. If obj is not an instance of PyLongObject, first call its int() method (if present) to convert it to a PyLongObject.
Raise OverflowError if the value of obj is out of range for a long.
Returns -1 on error. Use PyErr_Occurred() to disambiguate.
Return a C long long representation of obj. If obj is not an instance of PyLongObject, first call its __int__() method (if present) to convert it to a PyLongObject. Raise OverflowError if the value of obj is out of range for a long. Returns -1 on error. Use PyErr_Occurred() to disambiguate.
(PyLong_Check p)
Return true if its argument is a PyLongObject or a subtype of PyLongObject.
Return true if its argument is a PyLongObject or a subtype of PyLongObject.
(PyLong_CheckExact p)
Return true if its argument is a PyLongObject, but not a subtype of PyLongObject.
Return true if its argument is a PyLongObject, but not a subtype of PyLongObject.
(PyLong_FromDouble v)
Return value: New reference.
Return a new PyLongObject object from the integer part of v, or NULL on failure.
Return value: New reference. Return a new PyLongObject object from the integer part of v, or NULL on failure.
(PyLong_FromLong v)
Return value: New reference.
Return a new PyLongObject object from v, or NULL on failure.
The current implementation keeps an array of integer objects for all integers between -5 and 256, when you create an int in that range you actually just get back a reference to the existing object. So it should be possible to change the value of
Return value: New reference. Return a new PyLongObject object from v, or NULL on failure. The current implementation keeps an array of integer objects for all integers between -5 and 256, when you create an int in that range you actually just get back a reference to the existing object. So it should be possible to change the value of 1. I suspect the behaviour of Python in this case is undefined. :-)
(PyLong_FromLongLong v)
Return value: New reference.
Return a new PyLongObject object from a C long long, or NULL on failure.
Return value: New reference. Return a new PyLongObject object from a C long long, or NULL on failure.
(PyLong_FromSsize_t v)
Return value: New reference.
Return a new PyLongObject object from a C Py_ssize_t, or NULL on failure.
Return value: New reference. Return a new PyLongObject object from a C Py_ssize_t, or NULL on failure.
(PyLong_FromUnsignedLong v)
Return value: New reference.
Return a new PyLongObject object from a C unsigned long, or NULL on failure.
Return value: New reference. Return a new PyLongObject object from a C unsigned long, or NULL on failure.
(PyLong_FromUnsignedLongLong v)
Return value: New reference.
Return a new PyLongObject object from a C unsigned long long, or NULL on failure.
Return value: New reference. Return a new PyLongObject object from a C unsigned long long, or NULL on failure.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close