diff options
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/compile.c b/Python/compile.c index e69ae6e..0f21adfa 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -46,10 +46,10 @@ extern int errno; #define OFF(x) offsetof(codeobject, x) static struct memberlist code_memberlist[] = { - {"co_code", T_OBJECT, OFF(co_code)}, - {"co_consts", T_OBJECT, OFF(co_consts)}, - {"co_names", T_OBJECT, OFF(co_names)}, - {"co_filename", T_OBJECT, OFF(co_filename)}, + {"co_code", T_OBJECT, OFF(co_code), READONLY}, + {"co_consts", T_OBJECT, OFF(co_consts), READONLY}, + {"co_names", T_OBJECT, OFF(co_names), READONLY}, + {"co_filename", T_OBJECT, OFF(co_filename), READONLY}, {NULL} /* Sentinel */ }; |