Searched refs:pylong (Results 1 – 9 of 9) sorted by relevance
/external/python/cpython2/Doc/c-api/ |
D | long.rst | 125 .. 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/ |
D | long.rst | 210 .. 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/ |
D | pickletools.py | 732 pylong = StackObject( variable 955 stack_after=[pylong], 973 stack_after=[pylong], 984 stack_after=[pylong],
|
/external/python/cpython3/Modules/_decimal/ |
D | _decimal.c | 2637 #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/ |
D | refcounts.dat | 1142 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/ |
D | refcounts.dat | 636 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/ |
D | arraymodule.c | 2105 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/ |
D | pickletools.py | 978 pyint = pylong = StackObject(
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.1.rst | 499 *pylong* by raising :exc:`OverflowError` instead of :exc:`TypeError`.
|