Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 39d942d

Browse files
committed
add READONLY to member list.
1 parent 96a42c8 commit 39d942d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Python/compile.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ extern int errno;
4646
#define OFF(x) offsetof(codeobject, x)
4747

4848
static struct memberlist code_memberlist[] = {
49-
{"co_code", T_OBJECT, OFF(co_code)},
50-
{"co_consts", T_OBJECT, OFF(co_consts)},
51-
{"co_names", T_OBJECT, OFF(co_names)},
52-
{"co_filename", T_OBJECT, OFF(co_filename)},
49+
{"co_code", T_OBJECT, OFF(co_code), READONLY},
50+
{"co_consts", T_OBJECT, OFF(co_consts), READONLY},
51+
{"co_names", T_OBJECT, OFF(co_names), READONLY},
52+
{"co_filename", T_OBJECT, OFF(co_filename), READONLY},
5353
{NULL} /* Sentinel */
5454
};
5555

0 commit comments

Comments
 (0)