Procs
proc PyObject_DelAttr(self: PyObject; name: PyStrObject | PyObject): PyObject {. cdecl, ...raises: [].}
- Source Edit
proc PyObject_GetAttr(v: PyObject; name: PyStrObject | PyObject): PyObject
- Source Edit
proc PyObject_GetOptionalAttr(v: PyObject; name: PyStrObject | PyObject; res: var PyObject): GetItemRes
-
- on AttributeError, res will be nil, result will be Missing
- on other exceptions, res will be that exception, result will be Error
proc PyObject_HasAttrWithError(obj: PyObject; name: PyStrObject | PyObject; exc: var PyBaseErrorObject): GetItemRes
- Source Edit
proc PyObject_SetAttr(self: PyObject; name: PyStrObject | PyObject; value: PyObject): PyObject {.cdecl, ...raises: [].}
- Source Edit
Exports
-
PyObject_GenericGetAttrWithDict, asPyObjectSteal, PyCStackRef, PyObject_GenericGetAttr, PyStackRef_FromPyObjectSteal, PyObject_GenericDelAttr, getTypeDict, PyType_LookupStackRefAndVersion, PyObject_GenericGetAttrWithDict, PyStackRef, PyStackRef_NULL, PyObject_GenericSetAttr, pushedCStackRef, isNull, PyThreadState_PushCStackRef, asPyObjectBorrow, asAttrNameOrRetE, GetItemRes