diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/function.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/function.py b/python/function.py index 3f908ef6..dce57975 100644 --- a/python/function.py +++ b/python/function.py @@ -293,6 +293,8 @@ class Variable(object): return self.name def __eq__(self, other): + if not isinstance(other, Variable): + return False return (self.identifier, self.function) == (other.identifier, other.function) def __hash__(self): |
