diff options
author | Guido van Rossum <guido@python.org> | 1992-01-14 18:32:20 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-01-14 18:32:20 (GMT) |
commit | a38c0ff7cd289b73b32ee3c7b16ceef3f229d42b (patch) | |
tree | 105641fe30526daa706551001b4653bd2d0db6d9 /Objects | |
parent | 088bc2ad3cdea6b9e042efe8863828334517f897 (diff) | |
download | cpython-a38c0ff7cd289b73b32ee3c7b16ceef3f229d42b.zip cpython-a38c0ff7cd289b73b32ee3c7b16ceef3f229d42b.tar.gz cpython-a38c0ff7cd289b73b32ee3c7b16ceef3f229d42b.tar.bz2 |
Added READONLY specifier to data members.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/funcobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c index 64e3518..d522d70 100644 --- a/Objects/funcobject.c +++ b/Objects/funcobject.c @@ -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 */ }; |