diff options
author | Guido van Rossum <guido@python.org> | 1996-08-09 20:48:52 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-08-09 20:48:52 (GMT) |
commit | 0693dd232ed861f5aacc2d97695c50bc6cdad3bc (patch) | |
tree | 0f40f1b7efde26c9b2c9349502872a0954e83e66 /Include | |
parent | 9dc78339881f0a4614f5e5f0fa8e397fe241d269 (diff) | |
download | cpython-0693dd232ed861f5aacc2d97695c50bc6cdad3bc.zip cpython-0693dd232ed861f5aacc2d97695c50bc6cdad3bc.tar.gz cpython-0693dd232ed861f5aacc2d97695c50bc6cdad3bc.tar.bz2 |
Added tp_getattro, tp_setattro (Sjoerd)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/object.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Include/object.h b/Include/object.h index a79d1f7..782b57c 100644 --- a/Include/object.h +++ b/Include/object.h @@ -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; |