branching.py | raw changeset files shortlog | return-value-definition |
1.1 --- a/branching.py Sat Mar 11 16:46:36 2017 +0100 1.2 +++ b/branching.py Sat Mar 11 22:27:45 2017 +0100 1.3 @@ -607,6 +607,12 @@ 1.4 d[name] = l 1.5 return d 1.6 1.7 + def returns_value(self): 1.8 + 1.9 + "Indicate whether a value is always being returned." 1.10 + 1.11 + return isinstance(self.attribute_branches[-1], AbandonedDict) 1.12 + 1.13 # Special objects. 1.14 1.15 class AbandonedDict(dict):