Types
PyIntObject = ref object of PyObject v*: IntObject
- Source Edit
Lets
pyIntObjectType {.inject.} = newBltinPyType("int", pyObjectType)
- Source Edit
Consts
digitPyLong_DECIMAL_BASE = 1410065408'u
- Source Edit
Procs
proc newPyInt(i: Digit): PyIntObject {....raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPyInt(o: IntObject): PyIntObject {....raises: [], tags: [RootEffect], forbids: [].}
- deep copy, returning a new object Source Edit
proc newPyInt(o: PyIntObject): PyIntObject {.inline, ...raises: [], tags: [RootEffect], forbids: [].}
- deep copy, returning a new object Source Edit
proc newPyInt[T: SomeSignedInt](i: T): PyIntObject
- Source Edit
proc newPyInt[T: SomeUnsignedInt and not Digit](i: T): PyIntObject
- Source Edit
proc newPyIntFromPtr(p: pointer): PyIntObject {....raises: [], tags: [RootEffect], forbids: [].}
- PyLong_FromVoidPtr Source Edit
proc newPyIntFromPtr[I: ref | ptr](i: I): PyIntObject
- Source Edit
proc newPyIntSimple(): PyIntObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc ofExactPyIntObject(obj`gensym0: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofPyIntObject(obj`gensym0: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
Templates
template sign(self: PyIntObject): IntSign
- Source Edit