[Python-checkins] r42591 - python/trunk/Lib/compiler/transformer.py

martin.v.loewis python-checkins at python.org
Mon Feb 27 17:03:40 CET 2006


Author: martin.v.loewis
Date: Mon Feb 27 17:03:39 2006
New Revision: 42591

Modified:
   python/trunk/Lib/compiler/transformer.py
Log:
Alias non-terminals introduced for backwards compatibility.


Modified: python/trunk/Lib/compiler/transformer.py
==============================================================================
--- python/trunk/Lib/compiler/transformer.py	(original)
+++ python/trunk/Lib/compiler/transformer.py	Mon Feb 27 17:03:39 2006
@@ -278,6 +278,7 @@
         code = self.com_node(nodelist[-1])
 
         return Lambda(names, defaults, flags, code, lineno=nodelist[1][2])
+    old_lambdef = lambdef
 
     def classdef(self, nodelist):
         # classdef: 'class' NAME ['(' [testlist] ')'] ':' suite
@@ -572,6 +573,8 @@
         if len(nodelist) == 1 and nodelist[0][0] == symbol.lambdef:
             return self.lambdef(nodelist[0])
         return self.com_binary(Or, nodelist)
+    or_test = test
+    old_test = test
 
     def and_test(self, nodelist):
         # not_test ('and' not_test)*


More information about the Python-checkins mailing list