Types
PyIntObject = ref object of PyObject sign*: IntSign digits*: seq[Digit]
- Source Edit
Lets
pyIntObjectType {.inject.} = newPyType("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: PyIntObject): PyIntObject {....raises: [], tags: [RootEffect], forbids: [].}
- deep copy, returning a new object Source Edit
proc newPyInt[I: SomeSignedInt](i: I): PyIntObject
- Source Edit
proc newPyInt[I: SomeUnsignedInt and not Digit](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