1.1 --- a/micropython/__init__.py Tue Jul 05 00:37:58 2011 +0200
1.2 +++ b/micropython/__init__.py Tue Jul 05 00:39:38 2011 +0200
1.3 @@ -696,7 +696,8 @@
1.4 for attrvalue in attrvalues:
1.5 for name in objtable.any_possible_objects([attrname]):
1.6 parent = objtable.access(name, name)
1.7 - if not parent.instance_attributes().has_key(attrname):
1.8 + if not isinstance(parent, micropython.data.Class) or \
1.9 + not parent.instance_attributes().has_key(attrname):
1.10 parent.set(attrname, attrvalue, 0)
1.11 else:
1.12 for attrvalue in attrvalues: