summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-01-12 02:30:05 (GMT)
committerGuido van Rossum <guido@python.org>1992-01-12 02:30:05 (GMT)
commit39d942da0fb5fa42bfc5fcacf11122f4abde41e7 (patch)
tree486f2dc8ff400832270025ecf2bc391b79eb3195 /Python/compile.c
parent96a42c85bca45d8f0ac23ac3103185ed65391c14 (diff)
downloadcpython-39d942da0fb5fa42bfc5fcacf11122f4abde41e7.zip
cpython-39d942da0fb5fa42bfc5fcacf11122f4abde41e7.tar.gz
cpython-39d942da0fb5fa42bfc5fcacf11122f4abde41e7.tar.bz2
add READONLY to member list.
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c8
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 */
};