# HG changeset patch # User drewp@bigasterisk.com # Date 1244928060 0 # Node ID 8707b063876bf4cbbcba5800d04d8043a0a07175 # Parent 17e8859440f372e03fd2e1243f46b92b63a2508f support adding submasters for subterm expressions Ignore-this: 5ef02e8ac1527b5f70bce58432aeb03b diff -r 17e8859440f3 -r 8707b063876b light9/Submaster.py --- a/light9/Submaster.py Sat Jun 13 21:20:53 2009 +0000 +++ b/light9/Submaster.py Sat Jun 13 21:21:00 2009 +0000 @@ -121,6 +121,10 @@ __rmul__ = __mul__ def max(self, *othersubs): return sub_maxes(self, *othersubs) + + def __add__(self, other): + return self.max(other) + def __repr__(self): items = self.levels.items() items.sort()