On 8/28/06, guido.van.rossum <[email protected]> wrote:
> Modified: python/branches/p3yk/Lib/compiler/ast.py > ============================================================================== > --- python/branches/p3yk/Lib/compiler/ast.py (original) > +++ python/branches/p3yk/Lib/compiler/ast.py Mon Aug 28 17:27:34 2006 > @@ -1091,6 +1089,22 @@ > def __repr__(self): > return "RightShift((%s, %s))" % (repr(self.left), repr(self.right)) > > +class Set(Node): > + def __init__(self, items, lineno=None): > + self.items = items > + self.lineno = lineno > + > + def getChildren(self): > + return tuple(flatten(self.items)) > + > + def getChildNodes(self): > + nodelist = [] > + nodelist.extend(flatten_nodes(self.items)) > + return tuple(nodelist) Any reason to not use: return tuple(flatten_nodes(self.items)) ? n _______________________________________________ Python-3000-checkins mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000-checkins
