Mercurial > cpython-lru_cache-weakref
diff Include/classobject.h @ 1863:855cefbb2718 legacy-trunk
Define cl_{get,set,del}attr members in classobject
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 06 Sep 1994 09:48:43 +0000 |
| parents | 9b530bb54642 |
| children | 9d9812f2798b |
line wrap: on
line diff
--- a/Include/classobject.h Mon Sep 05 11:51:33 1994 +0000 +++ b/Include/classobject.h Tue Sep 06 09:48:43 1994 +0000 @@ -43,18 +43,16 @@ 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;
