File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -185,7 +185,9 @@ typedef struct {
185185typedef void (* destructor ) Py_PROTO ((PyObject * ) );
186186typedef int (* printfunc ) Py_PROTO ((PyObject * , FILE * , int ) );
187187typedef PyObject * (* getattrfunc ) Py_PROTO ((PyObject * , char * ) );
188+ typedef PyObject * (* getattrofunc ) Py_PROTO ((PyObject * , PyObject * ) );
188189typedef int (* setattrfunc ) Py_PROTO ((PyObject * , char * , PyObject * ) );
190+ typedef int (* setattrofunc ) Py_PROTO ((PyObject * , PyObject * , PyObject * ) );
189191typedef int (* cmpfunc ) Py_PROTO ((PyObject * , PyObject * ) );
190192typedef PyObject * (* reprfunc ) Py_PROTO ((PyObject * ) );
191193typedef 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
You can’t perform that action at this time.
0 commit comments