micropython/data.py | raw changeset files shortlog |
1.1 --- a/micropython/data.py Thu Sep 08 00:33:33 2011 +0200 1.2 +++ b/micropython/data.py Sat Sep 10 20:29:30 2011 +0200 1.3 @@ -977,7 +977,7 @@ 1.4 """ 1.5 1.6 value = self.get_value() 1.7 - return not (value is None or isinstance(value, Instance)) 1.8 + return not (value is None or (isinstance(value, Instance) and not isinstance(value, Constant))) 1.9 1.10 def is_static_attribute(self): 1.11