1.1 --- a/annotate.py Tue Oct 31 00:44:10 2006 +0100
1.2 +++ b/annotate.py Sun Nov 12 23:40:20 2006 +0100
1.3 @@ -397,13 +397,18 @@
1.4 expr = self.namespace.types
1.5 storeattr.lvalue = self.dispatch(storeattr.lvalue)
1.6 writes = {}
1.7 + non_writes = []
1.8 for attr in self.namespace.types:
1.9 if attr is None:
1.10 - print "Empty attribute storage attempt"
1.11 + if not attr in non_writes:
1.12 + non_writes.append(attr)
1.13 continue
1.14 attr.type.namespace.store(storeattr.name, expr)
1.15 writes[attr.type] = attr.type.namespace.load(storeattr.name)
1.16 + if not writes:
1.17 + print "Unable to store attribute", storeattr.name, "given", self.namespace.types
1.18 storeattr.writes = writes
1.19 + storeattr.non_writes = non_writes
1.20 return storeattr
1.21
1.22 def visitStoreName(self, storename):