1.1 --- a/simplified.py Sat Oct 28 00:20:33 2006 +0200
1.2 +++ b/simplified.py Sat Oct 28 00:22:32 2006 +0200
1.3 @@ -228,8 +228,8 @@
1.4 if hasattr(self, "dstar") and self.dstar:
1.5 name, default = self.dstar
1.6 self._pprint(indent + 2, "( ", "%s default %s" % (name, default), stream=stream)
1.7 - if getattr(self, "acquire_locals", 0):
1.8 - self._pprint(indent + 2, "( ", "acquiring locals", stream=stream)
1.9 + if getattr(self, "internal", 0):
1.10 + self._pprint(indent + 2, "( ", "internal", stream=stream)
1.11 if getattr(self, "structure", 0):
1.12 self._pprint(indent + 2, "( ", "structure '%s'" % self.structure.name, stream=stream)
1.13
1.14 @@ -309,9 +309,10 @@
1.15 "A function or method invocation."
1.16
1.17 def __init__(self, *args, **kw):
1.18 - Node.__init__(self, *args, **kw)
1.19 + Invoke.__init__(self, *args, **kw)
1.20 if hasattr(self, "args"):
1.21 self.set_args(self.args)
1.22 + self.share_locals = 0
1.23
1.24 def set_args(self, args):
1.25
1.26 @@ -332,7 +333,13 @@
1.27 else:
1.28 raise TypeError, "Positional argument appears after keyword arguments in '%s'." % self
1.29
1.30 -class InvokeBlock(Invoke): "A block or loop invocation."
1.31 +class InvokeBlock(Invoke):
1.32 +
1.33 + "A block or loop invocation."
1.34 +
1.35 + def __init__(self, *args, **kw):
1.36 + self.share_locals = 1
1.37 + Invoke.__init__(self, *args, **kw)
1.38
1.39 # Named nodes are those which can be referenced in some way.
1.40