Added READONLY specifier to data members.

This commit is contained in:
Guido van Rossum 1992-01-14 18:32:20 +00:00
parent 088bc2ad3c
commit a38c0ff7cd
1 changed files with 2 additions and 2 deletions

View File

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