add READONLY to member list.

This commit is contained in:
Guido van Rossum 1992-01-12 02:30:05 +00:00
parent 96a42c85bc
commit 39d942da0f
1 changed files with 4 additions and 4 deletions

View File

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