1.1 --- a/micropython/data.py Fri Nov 29 01:17:17 2013 +0100
1.2 +++ b/micropython/data.py Fri Nov 29 01:37:15 2013 +0100
1.3 @@ -1116,15 +1116,13 @@
1.4 "An inspected function."
1.5
1.6 def __init__(self, name, parent, argnames, defaults, has_star, has_dstar,
1.7 - dynamic_def=0, module=None, node=None, original_name=None):
1.8 + module=None, node=None, original_name=None):
1.9
1.10 """
1.11 Initialise the function with the given 'name', 'parent', list of
1.12 'argnames', list of 'defaults', the 'has_star' flag (indicating the
1.13 presence of a * parameter), the 'has_dstar' flag (indicating the
1.14 - presence of a ** parameter), optional 'dynamic_def' (indicating that the
1.15 - function must be handled dynamically), optional 'module', and optional
1.16 - AST 'node'.
1.17 + presence of a ** parameter), optional 'module', and optional AST 'node'.
1.18 """
1.19
1.20 NamespaceDict.__init__(self, module)
1.21 @@ -1143,7 +1141,6 @@
1.22 self.defaults = defaults
1.23 self.has_star = has_star
1.24 self.has_dstar = has_dstar
1.25 - self.dynamic_def = dynamic_def
1.26 self.astnode = node
1.27
1.28 # Initialise the positional names.
1.29 @@ -1243,7 +1240,7 @@
1.30
1.31 if self.dynamic is None:
1.32 for attr in self.default_attrs:
1.33 - if not attr.is_strict_constant() and self.dynamic_def:
1.34 + if not attr.is_strict_constant():
1.35 self.dynamic = True
1.36 self._make_dynamic()
1.37 break
1.38 @@ -1405,7 +1402,7 @@
1.39 "Make an instantiator function from a method, keeping all arguments."
1.40
1.41 function = Function(self.parent.name, self.parent.parent, self.argnames, self.defaults,
1.42 - self.has_star, self.has_dstar, self.dynamic_def, self.module)
1.43 + self.has_star, self.has_dstar, self.module)
1.44 function.default_attrs = self.default_attrs
1.45 return function
1.46
1.47 @@ -1633,7 +1630,7 @@
1.48 # Function construction.
1.49
1.50 def get_function(name, parent, argnames, defaults, has_star, has_dstar,
1.51 - dynamic_def=0, module=None, node=None):
1.52 + module=None, node=None):
1.53
1.54 """
1.55 Return a Function instance for the class with the given 'name', 'parent',
1.56 @@ -1648,7 +1645,7 @@
1.57 name = "%s#%d" % (name, assignments + 1)
1.58
1.59 fn = Function(name, parent, argnames, defaults, has_star, has_dstar,
1.60 - dynamic_def, module, node, original_name)
1.61 + module, node, original_name)
1.62
1.63 # Add a reference for the function's "shadow" name.
1.64
2.1 --- a/micropython/inspect.py Fri Nov 29 01:17:17 2013 +0100
2.2 +++ b/micropython/inspect.py Fri Nov 29 01:37:15 2013 +0100
2.3 @@ -783,7 +783,6 @@
2.4 node.defaults,
2.5 (node.flags & 4 != 0),
2.6 (node.flags & 8 != 0),
2.7 - self.in_loop or self.in_function,
2.8 self,
2.9 node
2.10 )