From 39d942da0fb5fa42bfc5fcacf11122f4abde41e7 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 12 Jan 1992 02:30:05 +0000 Subject: add READONLY to member list. --- Python/compile.c | 8 ++++---- 1 file 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 */ }; -- cgit v0.12