1.1 --- a/micropython/__init__.py Sat Jul 26 01:16:02 2008 +0200
1.2 +++ b/micropython/__init__.py Sun Jul 27 02:00:31 2008 +0200
1.3 @@ -194,9 +194,11 @@
1.4 pos += 1
1.5
1.6 # Append any default values to the image.
1.7 + # Only do this for named functions (not lambdas).
1.8
1.9 - image += obj.default_attrs
1.10 - pos += len(obj.default_attrs)
1.11 + if obj.name is not None:
1.12 + image += obj.default_attrs
1.13 + pos += len(obj.default_attrs)
1.14
1.15 # Append the function code to the image.
1.16