# HG changeset patch # User Paul Boddie # Date 1265674324 -3600 # Node ID 040bf7b12ef3e14dcf03adafa4a90b6d2eb31411 # Parent 639aa6eb751c2be172cdf0af5dc13381555813fb Prevent re-entry into the attribute collection for an object. diff -r 639aa6eb751c -r 040bf7b12ef3 micropython/__init__.py --- a/micropython/__init__.py Tue Feb 09 00:50:46 2010 +0100 +++ b/micropython/__init__.py Tue Feb 09 01:12:04 2010 +0100 @@ -512,6 +512,8 @@ if from_name in self.attribute_users_visited: return + self.attribute_users_visited.add(from_name) + # Get name references and find possible objects which support such # combinations of attribute names. @@ -527,8 +529,6 @@ self.use_attribute(objname, attrname) self._collect_attributes(objname + "." + attrname, objtable) - self.attribute_users_visited.add(from_name) - # Constant accounting. def init_predefined_constants(self):