1.1 --- a/micropython/__init__.py Fri Jun 11 00:56:08 2010 +0200
1.2 +++ b/micropython/__init__.py Fri Jun 11 00:58:42 2010 +0200
1.3 @@ -167,9 +167,9 @@
1.4 self.code.append(obj)
1.5
1.6 # Append any default values to the image.
1.7 - # Only do this for named functions (not lambdas).
1.8 + # Only do this for functions which are not dynamic.
1.9
1.10 - if obj.name is not None:
1.11 + if not obj.is_dynamic():
1.12 self.code += obj.default_attrs
1.13
1.14 # Omit built-in function code where requested.