Types
PyCStackRef = object
- Source Edit
Consts
PyStackRef_NULL = nil
- Source Edit
Procs
proc getTypeDict(obj: PyObject | PyObjectObj): PyDictObject
- Source Edit
proc isNull(self: PyStackRef): bool {....raises: [], tags: [], forbids: [].}
- PyStackRef_IsNull Source Edit
proc pushedCStackRef(): PyCStackRef {....raises: [], tags: [], forbids: [].}
- Source Edit
proc PyObject_GenericGetAttrWithDict(self: PyObject; name: PyStrObject | PyObject; typeDict: PyDictObject = self.getTypeDict; supress: static[bool] = false): PyObject {. cdecl, ...raises: [].}
- returns nil if supress and not found Source Edit
proc PyObject_GenericGetAttrWithDict(self: PyObject; name: PyStrObject | PyObject; typeDict: typeof(nil); supress: static[bool] = false): PyObject {. cdecl, ...raises: [].}
- Source Edit
proc PyStackRef_FromPyObjectSteal(o: PyObject): PyStackRef {....raises: [], tags: [], forbids: [].}
- Source Edit
proc PyType_LookupStackRefAndVersion(tp: PyTypeObject; name: PyStrObject; o: var PyObject): uint {.discardable, ...raises: [], tags: [RootEffect], forbids: [].}
- _PyType_LookupStackRefAndVersion Source Edit
Templates
template asPyObjectBorrow(r: PyStackRef): lent PyObject
- PyStackRef_AsPyObjectBorrow Source Edit
template asPyObjectSteal(r: PyStackRef): PyObject
- PyStackRef_AsPyObjectSteal Source Edit
template PyThreadState_PushCStackRef(c)
- Source Edit