[Python-checkins] python/dist/src/Lib/compiler symbols.py, 1.12, 1.13

jhylton at users.sourceforge.net jhylton at users.sourceforge.net
Wed Aug 27 20:09:28 EDT 2003


Update of /cvsroot/python/python/dist/src/Lib/compiler
In directory sc8-pr-cvs1:/tmp/cvs-serv31985

Modified Files:
	symbols.py 
Log Message:
Fix SF bug [ 788011 ] compiler.compileFile fails on csv.py

Bug fix candidate.


Index: symbols.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/compiler/symbols.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** symbols.py	31 Dec 2002 18:17:42 -0000	1.12
--- symbols.py	28 Aug 2003 02:09:26 -0000	1.13
***************
*** 221,225 ****
          self.handle_free_vars(scope, parent)
  
!     def visitLambda(self, node, parent):
          for n in node.defaults:
              self.visit(n, parent)
--- 221,230 ----
          self.handle_free_vars(scope, parent)
  
!     def visitLambda(self, node, parent, assign=0):
!         # Lambda is an expression, so it could appear in an expression
!         # context where assign is passed.  The transformer should catch
!         # any code that has a lambda on the left-hand side.
!         assert not assign 
!         
          for n in node.defaults:
              self.visit(n, parent)





More information about the Python-checkins mailing list