Types
PyBoundMethodObject = ref object of PyObject fun*: PyFunctionObject self*: PyObject
- Source Edit
PyFunctionObject = ref object of PyObject name*: PyStrObject code*: PyCodeObject globals*: PyDictObject closure*: PyTupleObject
- Source Edit
PyStaticMethodObject = ref object of PyObject callable*: PyObject
- Source Edit
Lets
pyBoundMethodObjectType {.inject.} = newPyType("boundmethod", pyObjectType)
- Source Edit
pyFunctionObjectType {.inject.} = newPyType("function", pyObjectType)
- Source Edit
pyStaticMethodObjectType {.inject.} = newPyType("staticmethod", pyObjectType)
- Source Edit
Procs
proc initPyStaticMethodObjectMagic(selfNoCast: PyObject; args: openArray[PyObject] = @[]; kwargs: PyKwArgType = nil): PyObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newBoundMethod(fun: PyFunctionObject; self: PyObject): PyBoundMethodObject {. ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPyBoundMethodSimple(): PyBoundMethodObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPyFunc(name: PyStrObject; code: PyCodeObject; globals: PyDictObject; closure: PyObject = nil): PyFunctionObject {....raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPyFunctionSimple(): PyFunctionObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPyStaticMethod(callable: PyObject): PyStaticMethodObject {....raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPyStaticMethodSimple(): PyStaticMethodObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc ofExactPyBoundMethodObject(obj`gensym11: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofExactPyFunctionObject(obj`gensym0: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofExactPyStaticMethodObject(obj`gensym22: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofPyBoundMethodObject(obj`gensym11: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofPyFunctionObject(obj`gensym0: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofPyStaticMethodObject(obj`gensym22: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit