]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Define cl_{get,set,del}attr members in classobject
authorGuido van Rossum <guido@python.org>
Tue, 6 Sep 1994 09:48:43 +0000 (09:48 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 6 Sep 1994 09:48:43 +0000 (09:48 +0000)
Include/classobject.h

index f6193458509f03a9021ef22b21f379a52fee38a6..6024dbaff600ab52254c75566c125459879c4f26 100644 (file)
@@ -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;