Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0693dd2

Browse files
committed
Added tp_getattro, tp_setattro (Sjoerd)
1 parent 9dc7833 commit 0693dd2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Include/object.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ typedef struct {
185185
typedef void (*destructor) Py_PROTO((PyObject *));
186186
typedef int (*printfunc) Py_PROTO((PyObject *, FILE *, int));
187187
typedef PyObject *(*getattrfunc) Py_PROTO((PyObject *, char *));
188+
typedef PyObject *(*getattrofunc) Py_PROTO((PyObject *, PyObject *));
188189
typedef int (*setattrfunc) Py_PROTO((PyObject *, char *, PyObject *));
190+
typedef int (*setattrofunc) Py_PROTO((PyObject *, PyObject *, PyObject *));
189191
typedef int (*cmpfunc) Py_PROTO((PyObject *, PyObject *));
190192
typedef PyObject *(*reprfunc) Py_PROTO((PyObject *));
191193
typedef long (*hashfunc) Py_PROTO((PyObject *));
@@ -215,10 +217,10 @@ typedef struct _typeobject {
215217
hashfunc tp_hash;
216218
ternaryfunc tp_call;
217219
reprfunc tp_str;
220+
getattrofunc tp_getattro;
221+
setattrofunc tp_setattro;
218222

219223
/* Space for future expansion */
220-
long tp_xxx1;
221-
long tp_xxx2;
222224
long tp_xxx3;
223225
long tp_xxx4;
224226

0 commit comments

Comments
 (0)