Liking cljdoc? Tell your friends :D

libpython-clj.jna.concrete.numeric.integer


PyLong_AsLongclj

(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.
sourceraw docstring

PyLong_AsLongLongclj

(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.
sourceraw docstring

PyLong_Checkclj

(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.
sourceraw docstring

PyLong_CheckExactclj

(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.
sourceraw docstring

PyLong_FromDoubleclj

(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.
sourceraw docstring

PyLong_FromLongclj

(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

  1. I suspect the behaviour of Python in this case is undefined. :-)
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. :-)
sourceraw docstring

PyLong_FromLongLongclj

(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.
sourceraw docstring

PyLong_FromSsize_tclj

(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.
sourceraw docstring

PyLong_FromUnsignedLongclj

(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.
sourceraw docstring

PyLong_FromUnsignedLongLongclj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close