Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 568:92509d304e47 legacy-trunk
add READONLY to member list.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sun, 12 Jan 1992 02:30:05 +0000 |
| parents | d0baa8300005 |
| children | 37aa67f0867c |
line wrap: on
line diff
--- a/Python/compile.c Sun Jan 12 02:29:51 1992 +0000 +++ b/Python/compile.c Sun Jan 12 02:30:05 1992 +0000 @@ -46,10 +46,10 @@ #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 */ };
