[Python-checkins] CVS: python/dist/src Makefile.pre.in,1.14,1.15

Jeremy Hylton jhylton@users.sourceforge.net
Fri, 09 Feb 2001 14:22:20 -0800


Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv13672

Modified Files:
	Makefile.pre.in 
Log Message:
Relax the rules for using 'from ... import *' and exec in the presence
of nested functions.  Either is allowed in a function if it contains
no defs or lambdas or the defs and lambdas it contains have no free
variables.  If a function is itself nested and has free variables,
either is illegal.

Revise the symtable to use a PySymtableEntryObject, which holds all
the revelent information for a scope, rather than using a bunch of
st_cur_XXX pointers in the symtable struct.  The changes simplify the
internal management of the current symtable scope and of the stack.

Added new C source file: Python/symtable.c.  (Does the Windows build
process need to be updated?) 

As part of these changes, the initial _symtable module interface
introduced in 2.1a2 is replaced.  A dictionary of
PySymtableEntryObjects are returned.



Index: Makefile.pre.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/Makefile.pre.in,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** Makefile.pre.in	2001/02/06 14:50:27	1.14
--- Makefile.pre.in	2001/02/09 22:22:18	1.15
***************
*** 229,232 ****
--- 229,233 ----
  		Python/pythonrun.o \
  		Python/structmember.o \
+ 		Python/symtable.o \
  		Python/sysmodule.o \
  		Python/traceback.o \