Added tp_getattro, tp_setattro (Sjoerd)

This commit is contained in:
Guido van Rossum 1996-08-09 20:48:52 +00:00
parent 9dc7833988
commit 0693dd232e
1 changed files with 4 additions and 2 deletions

View File

@ -185,7 +185,9 @@ typedef struct {
typedef void (*destructor) Py_PROTO((PyObject *)); typedef void (*destructor) Py_PROTO((PyObject *));
typedef int (*printfunc) Py_PROTO((PyObject *, FILE *, int)); typedef int (*printfunc) Py_PROTO((PyObject *, FILE *, int));
typedef PyObject *(*getattrfunc) Py_PROTO((PyObject *, char *)); typedef PyObject *(*getattrfunc) Py_PROTO((PyObject *, char *));
typedef PyObject *(*getattrofunc) Py_PROTO((PyObject *, PyObject *));
typedef int (*setattrfunc) Py_PROTO((PyObject *, char *, PyObject *)); typedef int (*setattrfunc) Py_PROTO((PyObject *, char *, PyObject *));
typedef int (*setattrofunc) Py_PROTO((PyObject *, PyObject *, PyObject *));
typedef int (*cmpfunc) Py_PROTO((PyObject *, PyObject *)); typedef int (*cmpfunc) Py_PROTO((PyObject *, PyObject *));
typedef PyObject *(*reprfunc) Py_PROTO((PyObject *)); typedef PyObject *(*reprfunc) Py_PROTO((PyObject *));
typedef long (*hashfunc) Py_PROTO((PyObject *)); typedef long (*hashfunc) Py_PROTO((PyObject *));
@ -215,10 +217,10 @@ typedef struct _typeobject {
hashfunc tp_hash; hashfunc tp_hash;
ternaryfunc tp_call; ternaryfunc tp_call;
reprfunc tp_str; reprfunc tp_str;
getattrofunc tp_getattro;
setattrofunc tp_setattro;
/* Space for future expansion */ /* Space for future expansion */
long tp_xxx1;
long tp_xxx2;
long tp_xxx3; long tp_xxx3;
long tp_xxx4; long tp_xxx4;