1.1 --- a/micropython/__init__.py Tue Mar 04 00:41:53 2008 +0100
1.2 +++ b/micropython/__init__.py Sun Mar 09 02:10:12 2008 +0100
1.3 @@ -94,6 +94,10 @@
1.4 if not with_builtins and module_name == "__builtins__":
1.5 continue
1.6
1.7 + # Fix the attributes.
1.8 +
1.9 + module.finalise_attributes()
1.10 +
1.11 pos = len(image)
1.12
1.13 # Position the module in the image and make a translation.
1.14 @@ -122,6 +126,11 @@
1.15 # Append classes and functions to the image.
1.16
1.17 for obj in module.all_objects:
1.18 +
1.19 + # Fix the attributes.
1.20 +
1.21 + obj.finalise_attributes()
1.22 +
1.23 if isinstance(obj, micropython.inspect.Class):
1.24
1.25 # Position the class in the image.