diff --git a/.build b/.build index ca7bf83..da2d398 100644 --- a/.build +++ b/.build @@ -1 +1 @@ -13 \ No newline at end of file +14 \ No newline at end of file diff --git a/pylast.py b/pylast.py index 5720595..7bbbd7c 100644 --- a/pylast.py +++ b/pylast.py @@ -1025,6 +1025,9 @@ class _BaseObject(object): """Returns the most common set of parameters between all objects.""" return {} + + def __hash__(self): + return hash(self.network) + hash("".join(self._get_params().keys() + self._get_params().values())) class _Taggable(object): """Common functions for classes with tags."""