From: Martin v. Löwis <martin@v.loewis.de> Date: Mon, 27 Feb 2006 19:57:01 +0000 (+0000) Subject: Make or_test similar to test, not testlist. X-Git-Tag: v2.5a0~511 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59977a677c9609c3e0e05bbd2ffb8344e4c66c8e;p=python Make or_test similar to test, not testlist. --- diff --git a/Lib/compiler/transformer.py b/Lib/compiler/transformer.py index 3f631fe341..ae9b81903c 100644 --- a/Lib/compiler/transformer.py +++ b/Lib/compiler/transformer.py @@ -945,7 +945,7 @@ class Transformer: # 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 @@ if hasattr(symbol, 'yield_expr'): _assign_types = [ symbol.test, + symbol.or_test, symbol.and_test, symbol.not_test, symbol.comparison,