projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa443cd
)
Alias non-terminals introduced for backwards compatibility.
author
Martin v. Löwis
<martin@v.loewis.de>
Mon, 27 Feb 2006 16:03:39 +0000
(16:03 +0000)
committer
Martin v. Löwis
<martin@v.loewis.de>
Mon, 27 Feb 2006 16:03:39 +0000
(16:03 +0000)
Lib/compiler/transformer.py
patch
|
blob
|
history
diff --git
a/Lib/compiler/transformer.py
b/Lib/compiler/transformer.py
index 924dcc7de50811e50e1f0eb8d10982cec9347afb..65a69d46e83bb1ae92e8da3d4ccbea2a644dcabd 100644
(file)
--- a/
Lib/compiler/transformer.py
+++ b/
Lib/compiler/transformer.py
@@
-278,6
+278,7
@@
class Transformer:
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
@@
class Transformer:
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)*