Procs
proc PyNumber_AsClampedSsize_t(pyObj: PyObject; res: var int): PyTypeErrorObject {. ...raises: [], tags: [RootEffect, WriteIOEffect], forbids: [].}
-
C: PyNumber_AsSsize_t(pyObj, NULL) clamp result if overflow
returns nil unless Py's TypeError
Source Edit proc PyNumber_AsSsize_t(pyObj: PyObject; res: var int): PyExceptionObject {. ...raises: [], tags: [RootEffect, WriteIOEffect], forbids: [].}
- returns nil if no error; otherwise returns TypeError or OverflowError Source Edit
proc PyNumber_AsSsize_t(pyObj: PyObject; res: var PyExceptionObject): int {. ...raises: [], tags: [RootEffect, WriteIOEffect], forbids: [].}
-
res inout
CPython's defined at abstract.c
Source Edit
Exports
-
PY_INT_DEFAULT_MAX_STR_DIGITS, toFloat, PY_INT_MAX_STR_DIGITS_THRESHOLD, pyIntZero, ==, absToUInt, toIntOrRetOF, hash, frexp, PyLong_AsSize_t, toStringCheckThreshold, $, fromStr, pyIntObjectType, toFloat, PyInt_OverflowCType, flipSign, PyLong_AsSsize_t, bit_count, PyLong_SHIFT, toInt, PyLong_FromString, digitPyLong_DECIMAL_BASE, floorDivNonZero, toUInt, newPyInt, *, PyIntObject, retInvIntCall, format, ofExactPyIntObject, PyLong_DECIMAL_BASE, positive, zero, divmodNonZero, toInt, newPyIntSimple, toFloat, <, //, fromStr, PyLong_AsSize_t, newPyInt, negate, newPyInt, pyIntTen, toSomeSignedInt, newPyInt, bit_length, fromStr, divmod, numbits, toUInt, %, fromStr, +, PyLong_DECIMAL_SHIFT, pyIntOne, newPyInt, -, ofPyIntObject, <, asLongAndOverflow, toSomeUnsignedInt, newPyInt, PyLong_AsSsize_t, setSignNegative, digitCount, newPyInt, absToUInt, -, toSomeSignedIntUnsafe, PyLongBaseSet, abs, pow, negative, newPyIntSimple, digitPyLong_DECIMAL_BASE, shr, not, shl, frexp, toFloat, PyIntObject, ofPyIntObject, toFloat, negate, newPyInt, newPyInt, and, setSignNegative, shl, xor, pyIntObjectType, toFloat, zero, newPyInt, newPyInt, ofExactPyIntObject, PyLong_DECIMAL_BASE, or, positive, negative, PyLong_SHIFT, flipSign, shr, PyLong_DECIMAL_SHIFT, PyNumber_Index, PyNumber_Index, privatePyNumber_Index