1.1 --- a/simplify.py Mon Oct 16 23:39:35 2006 +0200
1.2 +++ b/simplify.py Tue Oct 17 20:10:07 2006 +0200
1.3 @@ -1003,8 +1003,15 @@
1.4
1.5 def visitFunction(self, function):
1.6
1.7 - # Make a subprogram for the function and record it outside the main
1.8 - # tree.
1.9 + """
1.10 + Make a subprogram for the 'function' and record it outside the main
1.11 + tree. Produce something like the following:
1.12 +
1.13 + StoreName (name)
1.14 + (expr) -> Subprogram (params)
1.15 + (star)
1.16 + (dstar)
1.17 + """
1.18
1.19 subprogram = Subprogram(function, name=function.name, acquire_locals=0, returns_value=1, star=None, dstar=None)
1.20 self.current_subprograms.append(subprogram)