Objects/pyobject_apis/attrsGeneric

Source   Edit  

Types

PyCStackRef = object
Source   Edit  

Procs

proc isNull(self: PyStackRef): bool {....raises: [], tags: [], forbids: [].}
PyStackRef_IsNull Source   Edit  
proc pushedCStackRef(): PyCStackRef {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc PyObject_GenericDelAttr(self: PyObject; nameObj: PyObject): PyObject {.
    cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
EXT. CPython doesn't have tp_delattr Source   Edit  
proc PyObject_GenericGetAttr(self: PyObject; name: PyObject): PyObject {.cdecl,
    ...raises: [], tags: [RootEffect], 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 PyObject_GenericSetAttr(self: PyObject; nameObj: PyObject; value: PyObject): PyObject {.
    cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
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