Types
PyBoundMethodObject = ref object of PyObject fun*: PyFunctionObject self*: PyObject
- Source Edit
PyFunctionObject = ref object of PyObject name*: PyStrObject module*: PyObject code*: PyCodeObject globals*: PyDictObject closure*: PyTupleObject defaults*: PyTupleObject kwdefaults*: PyDictObject
- Source Edit
PyStaticMethodObject = ref object of PyObject callable*: PyObject
- Source Edit
Lets
pyBoundMethodObjectType {.inject.} = newBltinPyType("boundmethod", pyObjectType)
- Source Edit
pyFunctionObjectType {.inject.} = newBltinPyType("function", pyObjectType)
- Source Edit
pyStaticMethodObjectType {.inject.} = newBltinPyType("staticmethod", pyObjectType)
- Source Edit
Procs
proc initPyStaticMethodObjectMagic(selfNoCast: PyObject; args: openArray[PyObject] = @[]; kwargs: PyKwArgType = nil): PyObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc modulePyBoundMethodObjectGetter(selfNoCast: PyObject): PyObject {.cdecl, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc namePyBoundMethodObjectGetter(selfNoCast: PyObject): PyObject {.cdecl, ...raises: [], tags: [], 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: PyTupleObject = nil; defaults: PyTupleObject = 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`gensym14: 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`gensym42: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofPyBoundMethodObject(obj`gensym14: 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`gensym42: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit