[Python-checkins] r65736 - in python/trunk: Include/symtable.h Python/symtable.c

benjamin.peterson python-checkins at python.org
Sun Aug 17 03:09:17 CEST 2008


Author: benjamin.peterson
Date: Sun Aug 17 03:09:17 2008
New Revision: 65736

Log:
expose PySTEntry.nested so the symtable module will work

Modified:
   python/trunk/Include/symtable.h
   python/trunk/Python/symtable.c

Modified: python/trunk/Include/symtable.h
==============================================================================
--- python/trunk/Include/symtable.h	(original)
+++ python/trunk/Include/symtable.h	Sun Aug 17 03:09:17 2008
@@ -32,7 +32,7 @@
 	PyObject *ste_children;  /* list of child ids */
 	_Py_block_ty ste_type;   /* module, class, or function */
 	int ste_unoptimized;     /* false if namespace is optimized */
-	unsigned ste_nested : 1;      /* true if block is nested */
+	int ste_nested : ;      /* true if block is nested */
 	unsigned ste_free : 1;        /* true if block has free variables */
 	unsigned ste_child_free : 1;  /* true if a child block has free vars,
 				         including free refs to globals */

Modified: python/trunk/Python/symtable.c
==============================================================================
--- python/trunk/Python/symtable.c	(original)
+++ python/trunk/Python/symtable.c	Sun Aug 17 03:09:17 2008
@@ -112,6 +112,7 @@
 	{"symbols",  T_OBJECT, OFF(ste_symbols), READONLY},
 	{"varnames", T_OBJECT, OFF(ste_varnames), READONLY},
 	{"children", T_OBJECT, OFF(ste_children), READONLY},
+	{"nested",   T_INT,    OFF(ste_nested), READONLY},
 	{"type",     T_INT,    OFF(ste_type), READONLY},
 	{"lineno",   T_INT,    OFF(ste_lineno), READONLY},
 	{NULL}


More information about the Python-checkins mailing list