]> granicus.if.org Git - python/commitdiff
Added tp_getattro, tp_setattro (Sjoerd)
authorGuido van Rossum <guido@python.org>
Fri, 9 Aug 1996 20:48:52 +0000 (20:48 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 9 Aug 1996 20:48:52 +0000 (20:48 +0000)
Include/object.h

index a79d1f7356dd277051c11558c8503f87209259da..782b57cb8745a58aa422a124559ca546a30d8b36 100644 (file)
@@ -185,7 +185,9 @@ typedef struct {
 typedef void (*destructor) Py_PROTO((PyObject *));
 typedef int (*printfunc) Py_PROTO((PyObject *, FILE *, int));
 typedef PyObject *(*getattrfunc) Py_PROTO((PyObject *, char *));
+typedef PyObject *(*getattrofunc) Py_PROTO((PyObject *, 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 PyObject *(*reprfunc) Py_PROTO((PyObject *));
 typedef long (*hashfunc) Py_PROTO((PyObject *));
@@ -215,10 +217,10 @@ typedef struct _typeobject {
        hashfunc tp_hash;
        ternaryfunc tp_call;
        reprfunc tp_str;
+       getattrofunc tp_getattro;
+       setattrofunc tp_setattro;
 
        /* Space for future expansion */
-       long tp_xxx1;
-       long tp_xxx2;
        long tp_xxx3;
        long tp_xxx4;