Parcourir la source

Temporary hash value for Graph.

Stefano Cossu il y a 6 ans
Parent
commit
adf2ad61ba
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      lakesuperior/model/rdf/graph.pyx

+ 2 - 2
lakesuperior/model/rdf/graph.pyx

@@ -300,8 +300,8 @@ cdef class Graph:
 
 
     def __hash__(self):
-        """ TODO Bogus """
-        return self.uri
+        """ TODO Not that great of a hash. """
+        return id(self)
 
 
     ## BASIC PYTHON-ACCESSIBLE SET OPERATIONS ##