diff options
-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 */ }; |