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

martin.v.loewis python-checkins at python.org
Mon Feb 27 20:57:02 CET 2006


Author: martin.v.loewis
Date: Mon Feb 27 20:57:01 2006
New Revision: 42618

Modified:
   python/trunk/Lib/compiler/transformer.py
Log:
Make or_test similar to test, not testlist.


Modified: python/trunk/Lib/compiler/transformer.py
==============================================================================
--- python/trunk/Lib/compiler/transformer.py	(original)
+++ python/trunk/Lib/compiler/transformer.py	Mon Feb 27 20:57:01 2006
@@ -945,7 +945,7 @@
         # loop to avoid trivial recursion
         while 1:
             t = node[0]
-            if t in (symbol.exprlist, symbol.testlist, symbol.testlist_safe, symbol.or_test, symbol.testlist_gexp):
+            if t in (symbol.exprlist, symbol.testlist, symbol.testlist_safe, symbol.testlist_gexp):
                 if len(node) > 2:
                     return self.com_assign_tuple(node, assigning)
                 node = node[1]
@@ -1416,6 +1416,7 @@
 
 _assign_types = [
     symbol.test,
+    symbol.or_test,
     symbol.and_test,
     symbol.not_test,
     symbol.comparison,


More information about the Python-checkins mailing list