diff options
author | Jeroen Demeyer <jdemeyer@cage.ugent.be> | 2017-07-17 19:41:03 +0200 |
---|---|---|
committer | Jeroen Demeyer <jdemeyer@cage.ugent.be> | 2017-07-17 19:41:03 +0200 |
commit | e1255baa6d495186f0fa0c64e1f0bc26f3c07478 (patch) | |
tree | 6e2147266d07e88a898d817f47a0269877368171 /Cython/Includes | |
parent | a2db27bb85d0daa4cc4b4b7d65c0e6a7cda5ec2a (diff) | |
download | cython-e1255baa6d495186f0fa0c64e1f0bc26f3c07478.tar.gz |
Add declarations for PyObject_GenericGetAttr and PyObject_GenericSetAttr
Diffstat (limited to 'Cython/Includes')
-rw-r--r-- | Cython/Includes/cpython/object.pxd | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Cython/Includes/cpython/object.pxd b/Cython/Includes/cpython/object.pxd index 1c272582a..093a43ea7 100644 --- a/Cython/Includes/cpython/object.pxd +++ b/Cython/Includes/cpython/object.pxd @@ -102,6 +102,8 @@ cdef extern from "Python.h": # or NULL on failure. This is the equivalent of the Python # expression "o.attr_name". + object PyObject_GenericGetAttr(object o, object attr_name) + int PyObject_SetAttrString(object o, char *attr_name, object v) except -1 # Set the value of the attribute named attr_name, for object o, to # the value v. Returns -1 on failure. This is the equivalent of @@ -112,6 +114,8 @@ cdef extern from "Python.h": # the value v. Returns -1 on failure. This is the equivalent of # the Python statement "o.attr_name = v". + int PyObject_GenericSetAttr(object o, object attr_name, object v) except -1 + int PyObject_DelAttrString(object o, char *attr_name) except -1 # Delete attribute named attr_name, for object o. Returns -1 on # failure. This is the equivalent of the Python statement: "del |