1.1 --- a/micropython/table.py Thu Jan 13 23:58:12 2011 +0100
1.2 +++ b/micropython/table.py Sat Jan 29 21:07:27 2011 +0100
1.3 @@ -175,10 +175,13 @@
1.4 if isinstance(attr, Class):
1.5 return (attr_index, None, None)
1.6
1.7 - if attr.parent is not None:
1.8 + # Get the absolute location for classes and modules.
1.9 +
1.10 + if attr.parent is not None and attr.is_static_attribute():
1.11 location = attr.parent.location or 0
1.12 else:
1.13 location = 0
1.14 +
1.15 if attr.position is not None:
1.16 position = attr.position + location + 1 # skip structure header
1.17 else: