diff options
author | Guido van Rossum <guido@python.org> | 1994-09-06 09:48:43 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-09-06 09:48:43 +0000 |
commit | 27b909cbc9ff71d1f24d39bc72ab90f6381b2cec (patch) | |
tree | 82ec0c4b38fc5c4c59b0c2272e575b422f5c7cf6 /Include/classobject.h | |
parent | cbdcea5324cae8ba6209ad5c22dd41637b976a36 (diff) | |
download | cpython-27b909cbc9ff71d1f24d39bc72ab90f6381b2cec.tar.gz |
Define cl_{get,set,del}attr members in classobject
Diffstat (limited to 'Include/classobject.h')
-rw-r--r-- | Include/classobject.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Include/classobject.h b/Include/classobject.h index f619345850..6024dbaff6 100644 --- a/Include/classobject.h +++ b/Include/classobject.h @@ -43,18 +43,16 @@ typedef struct { object *cl_bases; /* A tuple of class objects */ object *cl_dict; /* A dictionary */ object *cl_name; /* A string */ + /* The following three are functions or NULL */ + object *cl_getattr; + object *cl_setattr; + object *cl_delattr; } classobject; typedef struct { OB_HEAD classobject *in_class; /* The class object */ object *in_dict; /* A dictionary */ - object *in_getattr; /* A method or NULL */ - object *in_setattr; /* A method or NULL */ - long in_ident; /* A thread ident or 0 */ -#ifdef WITH_THREAD - type_lock *in_lock; /* A lock or NULL */ -#endif } instanceobject; extern DL_IMPORT typeobject Classtype, Instancetype, Instancemethodtype; |