Home
last modified time | relevance | path

Searched refs:pylong (Results 1 – 9 of 9) sorted by relevance

/external/python/cpython2/Doc/c-api/
Dlong.rst125 .. c:function:: long PyLong_AsLong(PyObject *pylong)
131 Return a C :c:type:`long` representation of the contents of *pylong*. If
132 *pylong* is greater than :const:`LONG_MAX`, an :exc:`OverflowError` is raised
136 .. c:function:: long PyLong_AsLongAndOverflow(PyObject *pylong, int *overflow)
139 *pylong*. If *pylong* is greater than :const:`LONG_MAX` or less
149 .. c:function:: PY_LONG_LONG PyLong_AsLongLongAndOverflow(PyObject *pylong, int *overflow)
152 *pylong*. If *pylong* is greater than :const:`PY_LLONG_MAX` or less
162 .. c:function:: Py_ssize_t PyLong_AsSsize_t(PyObject *pylong)
168 Return a C :c:type:`Py_ssize_t` representation of the contents of *pylong*. If
169 *pylong* is greater than :const:`PY_SSIZE_T_MAX`, an :exc:`OverflowError` is raised
[all …]
/external/python/cpython3/Doc/c-api/
Dlong.rst210 .. c:function:: Py_ssize_t PyLong_AsSsize_t(PyObject *pylong)
216 Return a C :c:type:`Py_ssize_t` representation of *pylong*. *pylong* must
219 Raise :exc:`OverflowError` if the value of *pylong* is out of range for a
225 .. c:function:: unsigned long PyLong_AsUnsignedLong(PyObject *pylong)
231 Return a C :c:type:`unsigned long` representation of *pylong*. *pylong*
234 Raise :exc:`OverflowError` if the value of *pylong* is out of range for a
241 .. c:function:: size_t PyLong_AsSize_t(PyObject *pylong)
247 Return a C :c:type:`size_t` representation of *pylong*. *pylong* must be
250 Raise :exc:`OverflowError` if the value of *pylong* is out of range for a
257 .. c:function:: unsigned long long PyLong_AsUnsignedLongLong(PyObject *pylong)
[all …]
/external/python/cpython2/Lib/
Dpickletools.py732 pylong = StackObject( variable
955 stack_after=[pylong],
973 stack_after=[pylong],
984 stack_after=[pylong],
/external/python/cpython3/Modules/_decimal/
D_decimal.c2637 #define PyDec_FromLong(pylong, context) \ argument
2638 PyDecType_FromLong(&PyDec_Type, pylong, context)
2639 #define PyDec_FromLongExact(pylong, context) \ argument
2640 PyDecType_FromLongExact(&PyDec_Type, pylong, context)
3336 PyLongObject *pylong; in dec_as_long() local
3386 pylong = _PyLong_New(n); in dec_as_long()
3387 if (pylong == NULL) { in dec_as_long()
3393 memcpy(pylong->ob_digit, ob_digit, n * sizeof(digit)); in dec_as_long()
3397 while ((i > 0) && (pylong->ob_digit[i-1] == 0)) { in dec_as_long()
3401 Py_SET_SIZE(pylong, i); in dec_as_long()
[all …]
/external/python/cpython3/Doc/data/
Drefcounts.dat1142 PyLong_AsDouble:PyObject*:pylong:0:
1145 PyLong_AsLong:PyObject*:pylong:0:
1159 PyLong_AsSize_t:PyObject*:pylong:0:
1162 PyLong_AsSsize_t:PyObject*:pylong:0:
1165 PyLong_AsUnsignedLong:PyObject*:pylong:0:
1168 PyLong_AsUnsignedLongLong:PyObject*:pylong:0:
1177 PyLong_AsVoidPtr:PyObject*:pylong:0:
/external/python/cpython2/Doc/data/
Drefcounts.dat636 PyLong_AsDouble:PyObject*:pylong:0:
639 PyLong_AsLong:PyObject*:pylong:0:
642 PyLong_AsSsize_t:PyObject*:pylong:0:
645 PyLong_AsUnsignedLong:PyObject*:pylong:0:
/external/python/cpython3/Modules/
Darraymodule.c2105 PyObject *pylong; in array__array_reconstructor_impl() local
2107 pylong = _PyLong_FromByteArray( in array__array_reconstructor_impl()
2112 if (pylong == NULL) { in array__array_reconstructor_impl()
2116 PyList_SET_ITEM(converted_items, i, pylong); in array__array_reconstructor_impl()
/external/python/cpython3/Lib/
Dpickletools.py978 pyint = pylong = StackObject(
/external/python/cpython3/Doc/whatsnew/
D3.1.rst499 *pylong* by raising :exc:`OverflowError` instead of :exc:`TypeError`.