Skip to content

Commit 943cddd

Browse files
author
benjamin.peterson
committed
expose PySTEntry.nested so the symtable module will work
git-svn-id: http://svn.python.org/projects/python/trunk@65736 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent d298e09 commit 943cddd

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Include/symtable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ typedef struct _symtable_entry {
3232
PyObject *ste_children; /* list of child ids */
3333
_Py_block_ty ste_type; /* module, class, or function */
3434
int ste_unoptimized; /* false if namespace is optimized */
35-
unsigned ste_nested : 1; /* true if block is nested */
35+
int ste_nested : ; /* true if block is nested */
3636
unsigned ste_free : 1; /* true if block has free variables */
3737
unsigned ste_child_free : 1; /* true if a child block has free vars,
3838
including free refs to globals */

Python/symtable.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ static PyMemberDef ste_memberlist[] = {
112112
{"symbols", T_OBJECT, OFF(ste_symbols), READONLY},
113113
{"varnames", T_OBJECT, OFF(ste_varnames), READONLY},
114114
{"children", T_OBJECT, OFF(ste_children), READONLY},
115+
{"nested", T_INT, OFF(ste_nested), READONLY},
115116
{"type", T_INT, OFF(ste_type), READONLY},
116117
{"lineno", T_INT, OFF(ste_lineno), READONLY},
117118
{NULL}

0 commit comments

Comments
 (0)