]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added READONLY specifier to data members.
authorGuido van Rossum <guido@python.org>
Tue, 14 Jan 1992 18:32:20 +0000 (18:32 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 14 Jan 1992 18:32:20 +0000 (18:32 +0000)
Objects/funcobject.c

index 64e3518657e8e27619b5cbf661e08c0cf47bceee..d522d70f02a3ef007135d0e97be5323bcf4ad266 100644 (file)
@@ -76,8 +76,8 @@ getfuncglobals(op)
 #define OFF(x) offsetof(funcobject, x)
 
 static struct memberlist func_memberlist[] = {
-       {"func_code",   T_OBJECT,       OFF(func_code)},
-       {"func_globals",T_OBJECT,       OFF(func_globals)},
+       {"func_code",   T_OBJECT,       OFF(func_code),         READONLY},
+       {"func_globals",T_OBJECT,       OFF(func_globals),      READONLY},
        {NULL}  /* Sentinel */
 };